backend/controllers/UsersController.php
/**
     * Opens user profile in frontend
     * @param string $id
     * @return mixed
     */
Opens user profile in frontend
@param string $id
@return mixed
Opens user profile in frontend @param string $id @return mixed
public function actionProfile($id)
    {
        $user = $this->findModel($id);
        $fu_hs = hash("sha512", $user->user_email . $user->password_hash);
        return $this->redirect(Yii::getAlias('@frontendWeb')."/user/fictive-login?fu_id={$id}&fu_hs={$fu_hs}");
    }
public function actionProfile ( $ id ) { $ user = $ this -> findModel ( $ id ) ; $ fu_hs = hash ( " sha512 " , $ user -> user_email . $ user -> password_hash ) ; return $ this -> redirect ( Yii :: getAlias ( '@frontendWeb' ) . " /user/fictive-login?fu_id= { $ id } &fu_hs= { $ fu_hs } " ) ; }
Opens user profile in frontend
 @param string $id
 @return mixed
Opens user profile in frontend @param string $id @return mixed