AdminUsersController.php
747 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Created by PhpStorm.
* User: ruidiudiu
* Date: 2018/11/20
* Time: 14:26
*/
namespace app\portal\controller;
use app\portal\model\UsersModel;
use cmf\controller\AdminBaseController;
/**
* Class AdminUsersController
* @package app\portal\controller
* @adminMenuRoot(
* 'name' =>'用户管理',
* 'action' =>'index',
* 'parent' =>'',
* 'display'=> true,
* 'order' => 30,
* 'icon' =>'th',
* 'remark' =>'用户管理'
* )
*/
class AdminUsersController extends AdminBaseController{
public function index(){
$users=new UsersModel();
$data=$users->order('create_time','desc')->paginate(10);
$this->assign('data',$data);
return $this->fetch();
}
}