M
M
M252018-07-30 21:31:05
Yii
M25, 2018-07-30 21:31:05

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>    
        
}
?>

this code is not working

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question