api/App/Controllers/Home.php

32 lines
521 B
PHP
Raw Normal View History

2019-03-30 12:19:46 +00:00
<?php
namespace App\Controllers;
use \Core\View;
/**
* 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 dfsdAction (){
$ret = [];
$ret[1] = "hello";
$this->JsonResp(200,$ret,"OK");
}
}