Changes
Title
unchanged
Database Driven CMenu
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
Content
changed
[...]
foreach($results AS $result)
{
if(yii::app()->user->id){
//*This code helps to hide the login menu when logged in.
Under options for login I set "IsGuest"
*/
if(Yii::app()->user->isGuest<>1 & $result['options']<>'IsGuest')
{
$permissions = 1;
}
else {[...]