widgets/emailCaptcha/EmailCaptchaAction.php
public function init()
    {
        if (!isset(Yii::$app->params['user.emailCaptchaExpire'])) {
            Yii::$app->params['user.emailCaptchaExpire'] = $this->expire;
        }

        $this->expire = Yii::$app->params['user.emailCaptchaExpire'];

        $data = Yii::$app->request->post(Yii::$app->request->get('formName', ''), []);
        $this->email = ArrayHelper::getValue($data, 'email');

    }
public function init()
    {
        if (!isset(Yii::$app->params['user.emailCaptchaExpire'])) {
            Yii::$app->params['user.emailCaptchaExpire'] = $this->expire;
        }

        $this->expire = Yii::$app->params['user.emailCaptchaExpire'];

        $data = Yii::$app->request->post(Yii::$app->request->get('formName', ''), []);
        $this->email = ArrayHelper::getValue($data, 'email');

    }
public function init ( ) { if ( ! isset ( Yii :: $ app -> params [ 'user.emailCaptchaExpire' ] ) ) { Yii :: $ app -> params [ 'user.emailCaptchaExpire' ] = $ this -> expire ; } $ this -> expire = Yii :: $ app -> params [ 'user.emailCaptchaExpire' ] ; $ data = Yii :: $ app -> request -> post ( Yii :: $ app -> request -> get ( 'formName' , '' ) , [ ] ) ; $ this -> email = ArrayHelper :: getValue ( $ data , 'email' ) ; }
Initializes the action.
Initializes the action .