Files
SRCMS/Application/Admin/Controller/IndexController.class.php
Martin Zhou 65e4506677 SRCMS·轻响应框架 V1.5正式版
SRCMS是专门为中小企业和互联网产品创业团队打造的应急响应中心网站建站框架
2016-01-24 11:54:16 +08:00

26 lines
569 B
PHP

<?php
namespace Admin\Controller;
use Admin\Controller;
/**
* @author Zhou Yuyang <1009465756@qq.com> 12:28 2016/1/23
* @copyright 2105-2018 SRCMS
* @homepage http://www.src.pw
* @version 1.5
*/
class IndexController extends BaseController{
public function index(){
$page = M('page')->count();
$user = M('member')->count();
$post = M('post')->count();
$links = M('links')->count();
$this->assign('page',$page);
$this->assign('user',$user);
$this->assign('post',$post);
$this->assign('links',$links);
$this->display();
}
}