frontend/controllers/UserController.php
/**
     * Displays user profile page.
     *
     * @return mixed
     */
Displays user profile page.
@return mixed
Displays user profile page . @return mixed
public function actionProfile(){
        $this->layout = 'site';
        $title = $this->pages->getPageTitle($this->param);
        $meta = $this->pages->getPageMetaData($this->param);
        $user = Yii::$app->user->identity;
        $last_download = $this->hosts->getLastDownloadDate($user);
        $url_lang = explode('-', Yii::$app->language);
        $lang_path = $url_lang[0];
        return $this->render('profile',['lang1' => $lang_path,'last_download'=>$last_download,'title'=>$title,'meta'=>$meta]);
    }
public function actionProfile ( ) { $ this -> layout = 'site' ; $ title = $ this -> pages -> getPageTitle ( $ this -> param ) ; $ meta = $ this -> pages -> getPageMetaData ( $ this -> param ) ; $ user = Yii :: $ app -> user -> identity ; $ last_download = $ this -> hosts -> getLastDownloadDate ( $ user ) ; $ url_lang = explode ( '-' , Yii :: $ app -> language ) ; $ lang_path = $ url_lang [ 0 ] ; return $ this -> render ( 'profile' , [ 'lang1' => $ lang_path , 'last_download' => $ last_download , 'title' => $ title , 'meta' => $ meta ] ) ; }
Displays user profile page.
Displays user profile page .