public function actionIndex()
    {
        $model = User::findMe();
        if (empty($model)) {
            if ($this->module->userComponent === true) {
                return $this->redirect(['account/login']);
            }
            return $this->module->goPodium();
        }
        return $this->render('profile', ['model' => $model]);
    }
public function actionIndex()
    {
        $model = User::findMe();
        if (empty($model)) {
            if ($this->module->userComponent === true) {
                return $this->redirect(['account/login']);
            }
            return $this->module->goPodium();
        }
        return $this->render('profile', ['model' => $model]);
    }
public function actionIndex ( ) { $ model = User :: findMe ( ) ; if ( empty ( $ model ) ) { if ( $ this -> module -> userComponent === true ) { return $ this -> redirect ( [ 'account/login' ] ) ; } return $ this -> module -> goPodium ( ) ; } return $ this -> render ( 'profile' , [ 'model' => $ model ] ) ; }
Showing the profile card.
@return string|Response
Showing the profile card .