TOP-framework/application/home/controller/Index.php

24 lines
359 B
PHP

<?php
namespace app\home\controller;
use app\home\model\Users;
class Index extends Common
{
public function index()
{
$model = model(Users::class);
$lists = $model->all;
return [
'lists' => $lists
];
}
public function hello()
{
// return $this->fetch();
return true;
}
}