38 lines
633 B
PHP
38 lines
633 B
PHP
<?php
|
|
|
|
namespace App\Controllers;
|
|
|
|
use Core\Model;
|
|
use \Core\View;
|
|
use App\Models;
|
|
|
|
/**
|
|
* Home controller
|
|
*
|
|
* PHP version 7.0
|
|
*/
|
|
class Home extends \Core\Controller
|
|
{
|
|
/**
|
|
* Show the index page
|
|
*
|
|
* @return void
|
|
*/
|
|
public function indexAction() {
|
|
$ret = [];
|
|
$ret[1] = "hello";
|
|
//View::renderTemplate('Home/index.html');
|
|
$this->JsonResp(200,$ret,"OK");
|
|
}
|
|
public function usersAction() {
|
|
$user = Models\User::getAll();
|
|
$this->JsonResp(200,$user,"OK");
|
|
}
|
|
public function insertAction() {
|
|
|
|
}
|
|
public function renderAction() {
|
|
|
|
}
|
|
}
|