예제 #1
0
 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();
 }
예제 #2
0
 /**
  * @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();
 }