public function __construct()
 {
     parent::__construct();
     $this->left_menus = $this->_generate_menus();
     $this->manager_role = D('User')->managerRole();
     $this->category = D('Category')->getTree(0);
 }
 public function __construct()
 {
     parent::__construct();
     if (!C('SHOW_STATISTIC')) {
         session('error', '统计功能已经关闭');
         redirect('Index/index');
     }
     $this->statistic_contents = unserialize(D('Config')->getConfigValue('contents'));
 }
 public function __construct()
 {
     parent::__construct();
     $this->left_menus = $this->_generate_menus();
     $this->msg_fields = D('Field')->getMessageFields();
 }
 public function setStatus($model = 'Content')
 {
     return parent::setStatus('Content');
 }
 public function __construct()
 {
     parent::__construct();
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     $this->left_menus = $this->_generate_menus();
 }