Dynamically Create Static Page
Posted: Sat Aug 02, 2008 10:22 pm
I have no idea if that subject makes any sense or not.
I've built a system that allows a user to create a full fledged menu for a website without using any html/css/whathaveyou. Currently, the menu requires a decent sized script with several mysql queries and one recursive function to display it properly on the frontend. I would really like to get rid of that script. I think the easiest way to do this is to make it so that whenever a new page is created on the backend, a file, "menus.php", is edited to reflect that new page. Then, instead of having a dynamic script on the frontend, I can simply include menus.php.
I'm not really sure what functions I should be looking into to do this. Pointers?
Will I run into cache issues if menus.php changes fairly regularly?
Thanks.
I've built a system that allows a user to create a full fledged menu for a website without using any html/css/whathaveyou. Currently, the menu requires a decent sized script with several mysql queries and one recursive function to display it properly on the frontend. I would really like to get rid of that script. I think the easiest way to do this is to make it so that whenever a new page is created on the backend, a file, "menus.php", is edited to reflect that new page. Then, instead of having a dynamic script on the frontend, I can simply include menus.php.
I'm not really sure what functions I should be looking into to do this. Pointers?
Will I run into cache issues if menus.php changes fairly regularly?
Thanks.