[eluser]AtlantixMedia[/eluser]
Hello,
this is my current way of handling menus and rarely changing parts of a web page
1) I store all the menu items in a db (name, url code, access level, visibility, etc)
2) from the admin panel, I run a function which saves relevant data (name, url, acces level) to a $config['menu'] array file
3) the file is then autoloaded
4) array is accessed in the different views to build these menus on the fly
Now, one simple way would be to simply save the final html and load that. problem is, there are some menu items which can only be seen by the admin. others can only be seen by a moderator. all the other have regular guest/registered member access.
what would be the proper way to approach this? I'm looking for a final approach which I will be using till the rest of my life
thanks in advance