Chtml::submitbutton Visibility

hi all

I am having this difficulty with this button

<div class="row buttons">

	&lt;?= CHtml::submitButton('Submit to all', array('class' =&gt; 'button-send-v2', 'value' =&gt; '','name'=&gt;'all')); ?&gt;


            &lt;span class=&quot;go-back&quot;&gt;


                &lt;span class=&quot;gray-text&quot;&gt; or &lt;/span&gt;


                &lt;?= CHtml::link('Cancel', &#036;this-&gt;createAbsoluteUrl('forum/index'), array('class' =&gt; 'go-back'));  ?&gt;


            &lt;/span&gt;


&lt;/div&gt;

how do i hide this button depending on the user id(Yii::app()->user->id) or at admin login??

Not sure what you need… but you can enclose this in an if(Yii::app()->user->id != …)

thankss…got it what i was looking for