hi i have a user and i want to display his firstname and lastname and other atributes in another view !! can someone help me
hi i have a user and i want to display his firstname and lastname and other atributes in another view !! can someone help me
Hi,
Models can be used in any controller/view !
So in your controller load the User ($u = User::model()->findByPk(Yii::app()->user->id)), pass the $u in your view
and in view echo $u->name, $u->surname
thx i will try it