I'm using yii framework and I'm new in yii and can't understand the problem in this code, it is giving error in this code and I just attached the image of my code
and when I just try to echo '<pre>';print_r($role);echo '</pre>';
it just print code like this
can't understand why this is giving error.