public function __construct() { parent::__construct(); $this->checkPermission = array('article' => 'add'); $this->view = new \fpcm\model\view\acp('articleadd', 'articles'); $this->article = new \fpcm\model\articles\article(); $this->categoryList = new \fpcm\model\categories\categoryList(); }
/** * @see \fpcm\controller\abstracts\controller::__construct() */ public function __construct() { parent::__construct(); $this->checkPermission = array('article' => 'edit'); $this->view = new \fpcm\model\view\acp('articleedit', 'articles'); $this->userList = new \fpcm\model\users\userList(); $this->commentList = new \fpcm\model\comments\commentList(); }