I have one question about Yii framework, and I need your help.
Basicly, I have php statement which shows user's name.
<?php echo Yii::app()->user->name;?>
This command will show e.g. "Harry Stamper" somewhere on page.
Imagine this scenario, I have several users, let's choose one, e.g. "John Doe" when I click on his page php statement from above will show "John Doe", as it should.
My question is: How to change this, so if I go to my page, title doesn't show "Harry Stamper" but shows "Your Page" for all members. So member home page becomes "Your Page" instead of your member name.
I think this is done with php if/else and user ID but I'm not sure how to do it in Yii. Any help would be awesome.