Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
UserProfileWidget.php
1 <?php
2 
4 {
5  /**
6  * Shows a particular model.
7 
8  * @return void
9  */
10 
11  public function run()
12  {
13  if ( Yii::app()->user->id ) {
14  $model = User::model()->findByPk(Yii::app()->user->id);
15  $this->render('UserProfileWidget', array( 'model'=>$model, 'profile'=>$model->profile));
16  }
17  }
18 }
19 
20 ?>