hi all
I am having this difficulty with this button
<div class="row buttons">
<?= CHtml::submitButton('Submit to all', array('class' => 'button-send-v2', 'value' => '','name'=>'all')); ?>
<span class="go-back">
<span class="gray-text"> or </span>
<?= CHtml::link('Cancel', $this->createAbsoluteUrl('forum/index'), array('class' => 'go-back')); ?>
</span>
</div>
how do i hide this button depending on the user id(Yii::app()->user->id) or at admin login??
Page 1 of 1
Chtml::submitbutton Visibility
#2
Posted 31 January 2013 - 05:13 AM
Not sure what you need... but you can enclose this in an if(Yii::app()->user->id != ...)
Find more about me.... btw. Do you know your WAN IP?
Share this topic:
Page 1 of 1

Help












