Inheritance: extends yii\base\Action
示例#1
0
 /**
  * @inheritdoc
  */
 public function actions()
 {
     //var_dump(\Yii::$app->request->getCookies()->getValue(\Yii::$app->request->csrfParam));
     // var_dump(\Yii::$app->request->getBodyParam(\Yii::$app->request->csrfParam));
     // die;
     return ['logout' => ['class' => LogoutAction::className()]];
 }
示例#2
0
 /**
  * @inheritdoc
  */
 public function actions()
 {
     return ['logout' => ['class' => LogoutAction::className()], 'client' => ['class' => 'yii\\authclient\\AuthAction', 'successCallback' => [$this, 'onAuthSuccess'], 'successUrl' => Url::to(['/cms/user/profile']), 'cancelUrl' => Url::to(['/cms/user/profile'])]];
 }
示例#3
0
 /**
  * @inheritdoc
  */
 public function actions()
 {
     return ['error' => ['class' => 'yii\\web\\ErrorAction'], 'captcha' => ['class' => 'yii\\captcha\\CaptchaAction', 'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null], 'auth' => ['class' => 'yii\\authclient\\AuthAction', 'successCallback' => [$this, 'successAuthclientCallback']], 'logout' => ['class' => LogoutAction::className()]];
 }
示例#4
0
 /**
  * @inheritdoc
  */
 public function actions()
 {
     return ['logout' => ['class' => LogoutAction::className()]];
 }