Beispiel #1
0
 public function init()
 {
     parent::init();
     if (!$this->isLogin()) {
         return $this->redirect('/wap/user/login');
     }
 }
Beispiel #2
0
 public function beforeAction($action)
 {
     $this->layout = false;
     $this->enableCsrfValidation = false;
     return parent::beforeAction($action);
 }