Url With Different User Id

Hello folks

I have a submission button which takes to a page that will display a different content depending on the user id.

I want to know how to do to modify the button’s code in order to display specific content to the specific user. Now by default it displays the content of user id number 4.


echo CHtml::button('Disply', array('class'=>'btn',

 'onclick'=>"window.open('http://www.*****.***/content.php?user_id=4&lang=en')"));

Thank you in advance

What is about this:


echo CHtml::button('Disply', array('class'=>'btn',

 'onclick'=>"window.open('http://www.*****.***/content.php?user_id=".$userID."&lang=en')"));

thanks for the reply

but it’s not working

I found the solution maybe it can be useful for the community


echo CHtml::button('Disply', array('class'=>'btn', 'onclick'=>"window.open('http://www.*****.***/content.php?user_id=".$model->user_id."&lang=en')"));