public function init()
 {
     parent::init();
     $this->category = new Category();
     $this->article = new Article();
     //$this->categories = parent::$categoryArr;
     $this->testEvent = new TestEvent();
 }
示例#2
0
 public function init()
 {
     parent::init();
     $this->request = Yii::$app->request;
     $session = Yii::$app->session;
     if (!$session->isActive) {
         $session->open();
     }
 }
 public function init()
 {
     parent::init();
     $this->category = new Category();
 }
 public function init()
 {
     parent::init();
     $this->article = new Article();
 }