• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
navigation / menu

#1
[eluser]Schumacher[/eluser]
ive asked once before but no one replied, and it might be because i asked in a wrong why.

so, my issue is that i want to structure my menu in a specefic way.
I would like to be able to make a ‘active’ class on the current page im on, so that it has a special class on it, but how do i get to know that this certain pageg is active? Before CI i just did the basename() and if that was it, it had a class on it.
But how do i do it with CI , in a smart way.
also if i would like to have more levels in my menu, so if im under lets say profile: then it shows
Profile
-edit text
-change password

and if im clicking on another page it goes for that page.

Anyone konw anything about that?

Plz let me know.

Or how have you done it ?

#2
[eluser]slowgary[/eluser]
This would largely depend on how your application is structured. You could set a variable in your controller methods and use it in your view. You can also check various $_SERVER variables from within the code that generates your navigation.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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