Example #1
0
 public function init()
 {
     parent::init();
     // ------------------------ SET LAYOUT ---------------------------------
     $this->layout = '@common/layouts/blank.php';
     // --------------------------- TITLE -----------------------------------
     $this->getView()->title = S::upperCamelize('test');
 }
Example #2
0
 /**
  * Declares external actions for the controller.
  *
  * @return array
  */
 public function actions()
 {
     return ArrayHelper::merge(parent::actions(), ['captcha' => ['class' => 'yii\\captcha\\CaptchaAction', 'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null]]);
 }
Example #3
0
 public function actions()
 {
     return ArrayHelper::merge(parent::actions(), ['auth' => ['class' => 'yii\\authclient\\AuthAction', 'successCallback' => [$this, 'successCallback']]]);
 }