function __construct($inPath) { parent::__construct(); if (self::isLogin() === false) { $this->ShowMsg("请先登录!", $this->createUrl("/main/index")); } $this->params['inpath'] = $inPath; }
function __construct($inPath) { parent::__construct(); if (self::isLogin() === false) { $this->ShowMsg("请先登录!", $this->createUrl("/main/index")); } if (self::checkRights($inPath) === false) { //$this->ShowMsg("您无权操作!",$this->createUrl("/system/index")); } $this->params['inpath'] = $inPath; $this->params['head_title'] = "商品管理-" . $this->params['head_title']; }