frontend/controllers/UserController.php
/**
     * Logs in a fictive user from admin.
     * @return mixed
     */
Logs in a fictive user from admin.
@return mixed
Logs in a fictive user from admin . @return mixed
public function actionFictiveLogin()
    {
        if (isset($_GET['fu_id'], $_GET['fu_hs'])) {
            Yii::$app->user->logout();
            $model = new LoginFictive();
            $model->fu_id = $_GET['fu_id'];
            $model->fu_hs = $_GET['fu_hs'];
        }
        return $this->goHome();
    }
public function actionFictiveLogin ( ) { if ( isset ( $ _GET [ 'fu_id' ] , $ _GET [ 'fu_hs' ] ) ) { Yii :: $ app -> user -> logout ( ) ; $ model = new LoginFictive ( ) ; $ model -> fu_id = $ _GET [ 'fu_id' ] ; $ model -> fu_hs = $ _GET [ 'fu_hs' ] ; } return $ this -> goHome ( ) ; }
Logs in a fictive user from admin.
Logs in a fictive user from admin .
//$model->fictiveLogin();