Main.php
1.0 KB
<?php
namespace app\school\controller;
use app\common\controller\DoubleBase;
/**
* 后台首页
* @internal
*/
class Main extends DoubleBase {
protected $noNeedRight = ['*'];
protected $layout = '';
/**
* 容器列表
*/
public function index() {
//左侧菜单
$map['level_type'] = 2;
list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getMainSidebar([
], 'double_detail/index' , $map);
$action = $this->request->request('action');
if ($this->request->isPost()) {
if ($action == 'refreshmenu') {
$this->success('', null, ['menulist' => $menulist, 'navlist' => $navlist]);
}
}
$this->view->assign('menulist', $menulist);
$this->view->assign('navlist', $navlist);
$this->view->assign('fixedmenu', $fixedmenu);
$this->view->assign('referermenu', $referermenu);
$this->view->assign('title', __('Home'));
return $this->fetch();
}
}