• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic menus for different kind of users

#1
[eluser]Unknown[/eluser]
Hello,

I need to create different menus for different users based on their roles. For this, one approach I get is to make a separate view of header and add it in all views. Through this view will call a controller which will generate a menu through DB and return to this view. In this case each time the page is changed request will go to DB which will cause slow response of page.

Is there anyway to store HTML of menu (globally) when user logs in and just access this variable each time as page changed??

Thanks


Messages In This Thread
Dynamic menus for different kind of users - by El Forum - 10-10-2011, 12:17 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.