I’m use Yii PHP framework but i cant write this code, what’s the true ?
<?php
if ( Yii::app()->user->isGuest != 1 ){
$guest = "<div class='box admin'>" .
$this->beginWidget('zii.widgets.CPortlet', array(
'title'=>'Admin menu',
));
$this->widget('zii.widgets.CMenu', array(
'items'=>$this->menu,
'htmlOptions'=>array('class'=>'operations'),
));
$this->endWidget();
"</div>";
}
else { $guest = ""; };
?>
<?php
echo $guest;
?>
ERROR MESSAGE:
Recoverable error
I’m just remove used this code without variables and i rewrite code in the place