2015-07-28 15:15:57 +08:00
|
|
|
<?php
|
|
|
|
|
namespace Admin\Controller;
|
|
|
|
|
use Admin\Controller;
|
|
|
|
|
|
2016-01-24 11:54:16 +08:00
|
|
|
/**
|
2016-12-03 21:42:04 +08:00
|
|
|
* @Author: Zhou Yuyang <1009465756@qq.com> 10:28 2016/12/03
|
|
|
|
|
* @Copyright 2015-2020 SISMO
|
|
|
|
|
* @Project homepage https://github.com/CNSISMO
|
|
|
|
|
* @Version 1.8
|
2016-01-24 11:54:16 +08:00
|
|
|
*/
|
|
|
|
|
|
2015-07-28 15:15:57 +08:00
|
|
|
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();
|
|
|
|
|
}
|
|
|
|
|
}
|