Database Driven CMenu

Comparing #1 with #2

Revision #2 was created by Preacher Preacher on Jan 23, 2014, 11:16:20 PM.

update note

Content

[...]
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 {
[...]