Welcome Guest, Not a member yet? Register   Sign In
Current page and 'active' class in menu
#4

You could use a constructor variable (array) to store the names of all pages in your menu. Then pass that variable along with the active pagename from the controller method to the view file. Then in the viewfile create a loop for the array and check inside the loop if that pagename is the same as the current pagename and fill your navbar.
Reply


Messages In This Thread
RE: Current page and 'active' class in menu - by Diederik - 06-07-2015, 04:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB