public function init() { parent::init(); // ------------------------ SET LAYOUT --------------------------------- $this->layout = '@common/layouts/blank.php'; // --------------------------- TITLE ----------------------------------- $this->getView()->title = S::upperCamelize('test'); }
/** * 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]]); }
public function actions() { return ArrayHelper::merge(parent::actions(), ['auth' => ['class' => 'yii\\authclient\\AuthAction', 'successCallback' => [$this, 'successCallback']]]); }