Answer the question
In order to leave comments, you need to log in
How to restrict view access of a div in YII1?
<?
if(!Yii::app()->user->checkAccess('3')){
<div class="row_float comments">
<?php echo $form->labelEx($model,'comments'); ?>
<?php echo $form->textArea($model,'comments',array('rows'=>3, 'cols'=>60)); ?>
<?php echo $form->error($model,'comments'); ?>
</div>
}
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question