Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

How to hide menu

$
0
0
I have 2 menus from one table as following:

Table name = user
Menu 1: User >> contains all data for admin
Menu 2: Biodata >> contains individual data for user

In menu item modify, I add this code:

Quote

if($_SESSION["UserID"] != "admin") {
if ($title=="User") {
return false;
}
}


When I open app as user, the code above works fine in menu bar (menu User not showing), but in welcome page area menu User still exist.

Is it the code incorrect? Please advise.

Thank you

Viewing all articles
Browse latest Browse all 2586

Trending Articles