frontend/controllers/ConferencesController.php
/**
     * Send share link to email
     * @return mixed
     */
Send share link to email
@return mixed
Send share link to email @return mixed
public function actionGuestLinkSendToEmail()
    {
        Yii::$app->response->format = Response::FORMAT_JSON;
        $model = new ParticipantAddForm($this->User);
        if ($model->load(['ParticipantAddForm' => $_POST], 'ParticipantAddForm') && $model->validate()) {
            return $model->guestLinkSendToEmail();
        }
        return ['status' => false, 'info' => 'Validation error.'];
    }
public function actionGuestLinkSendToEmail ( ) { Yii :: $ app -> response -> format = Response :: FORMAT_JSON ; $ model = new ParticipantAddForm ( $ this -> User ) ; if ( $ model -> load ( [ 'ParticipantAddForm' => $ _POST ] , 'ParticipantAddForm' ) && $ model -> validate ( ) ) { return $ model -> guestLinkSendToEmail ( ) ; } return [ 'status' => false , 'info' => 'Validation error.' ] ; }
Send share link to email
 @return mixed
Send share link to email @return mixed