コード例 #1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     /**
      * @var Module $m
      */
     $m = Yii::$app->getModule('user');
     Module::validateConfig($this->_module);
     $this->attributes += ['email' => ['type' => Form::INPUT_TEXT, 'hint' => Yii::t('user', 'Please fill out your email to receive a link to reset your password')]];
     $this->leftFooter = $m->button(Module::BTN_HOME, [], ['tabindex' => 1]) . $m->button(Module::BTN_NEW_USER, [], ['tabindex' => 2]);
     $this->rightFooter = $m->button(Module::BTN_RESET_FORM, [], ['tabindex' => 3]) . ' ' . $m->button(Module::BTN_SUBMIT_FORM, [], ['tabindex' => 0]);
     parent::init();
 }
コード例 #2
0
ファイル: BaseModel.php プロジェクト: vladim1/yii2-user
 /**
  * Initialize the model for the user module
  */
 public function init()
 {
     Module::validateConfig($this->_module);
     parent::init();
 }
コード例 #3
0
ファイル: LoginForm.php プロジェクト: vladim1/yii2-user
 /**
  * @inheritdoc
  */
 public function init()
 {
     Module::validateConfig($this->_module);
     $this->_settings = $this->_module->loginSettings;
     parent::init();
 }