controllers/SiteController.php
/**
     * Displays contact page.
     *
     * @return Response|string
     */
Displays contact page.
@return Response|string
Displays contact page . @return Response|string
public function actionAuthoriz()
    {
        $model = new AuthorizForm();
        if ($model->load(Yii::$app->request->post()) && $model->authoriz(Yii::$app->params['adminEmail'])) {
            Yii::$app->session->setFlash('contactFormSubmitted');
            return $this->redirect(['index']);
        }
        return $this->render('authoriz', [
            'model' => $model,
        ]);
    }
public function actionAuthoriz ( ) { $ model = new AuthorizForm ( ) ; if ( $ model -> load ( Yii :: $ app -> request -> post ( ) ) && $ model -> authoriz ( Yii :: $ app -> params [ 'adminEmail' ] ) ) { Yii :: $ app -> session -> setFlash ( 'contactFormSubmitted' ) ; return $ this -> redirect ( [ 'index' ] ) ; } return $ this -> render ( 'authoriz' , [ 'model' => $ model , ] ) ; }
Displays contact page.
Displays contact page .