Username: Posted July 23, 2010 Share Posted July 23, 2010 How would I go about making a template that I can insert to a page so that I don't have to go through every page and change links, names, etc... ? Quote Link to comment https://forums.phpfreaks.com/topic/208645-php-menu/ Share on other sites More sharing options...
dreamwest Posted July 23, 2010 Share Posted July 23, 2010 Smarty! All the cool programmers use it Otherwise just include it in php <?php include('header.php'); //other stuff ?> Quote Link to comment https://forums.phpfreaks.com/topic/208645-php-menu/#findComment-1090029 Share on other sites More sharing options...
Username: Posted July 23, 2010 Author Share Posted July 23, 2010 Smarty! All the cool programmers use it Otherwise just include it in php <?php include('header.php'); //other stuff ?> Oh... wow.. So I just include a php file, with all my menu stuff in it? Quote Link to comment https://forums.phpfreaks.com/topic/208645-php-menu/#findComment-1090090 Share on other sites More sharing options...
gwolgamott Posted July 23, 2010 Share Posted July 23, 2010 http://woork.blogspot.com/2007/10/load-page-using-url-variables-and-php.html Or if your ambitious enough to create your own here's a good reference for how, read the comments below the page as well, they have different methods for different reasons. At any rate leaves only a separate menu file that you have to update. And if really ambitious create a self-building menu based off of something in a database, folder listing, or something of that nature. Those are awesome to never edit a menu file again... well for content anyways. Quote Link to comment https://forums.phpfreaks.com/topic/208645-php-menu/#findComment-1090110 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.