Welcome Guest, Not a member yet? Register   Sign In
Where to store a common variable
#2

[eluser]Jaketoolson[/eluser]
I'm working on the same... I have sub menus and therefore my arrays wouldn't contain as much information as yours.
Code:
$nav = array(
  'home' => array(//sub-menu
      'about', 'contact'
      ),
  'stuff' => array(//submenu
      'more', 'pages'
      ),
  );
And then the value would also serve as the id and link... i created a nav cfg file and autoload it.


Messages In This Thread
Where to store a common variable - by El Forum - 02-11-2011, 05:40 PM
Where to store a common variable - by El Forum - 02-12-2011, 10:23 PM
Where to store a common variable - by El Forum - 02-12-2011, 10:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB