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