AbydosGater Posted March 28, 2007 Share Posted March 28, 2007 Hi, I have had an idea for an update to my site but it would need a templating system. I was wondering if going about making a templating system like this would work... --------------- The index file runs when a browser is pointed at it. It runs all the functions for say the menu bar and the code for creating it and all the other stuff.. When all the menus and page information is saved in variables the index.php calls in index.tpl which just has lots of html and a few blocks of php to echo the variables with the html code and there we have a page being displayed. Now it will not be like the example above just the one page but there will be other files that display different information from the database and i was just wondering if doing it this way was a good idea? Any other ideas or comments all accepted!! Thanks for your time in reading, Andy. Link to comment https://forums.phpfreaks.com/topic/44619-how-to-go-about-a-basic-templating-system/ Share on other sites More sharing options...
Greaser9780 Posted March 28, 2007 Share Posted March 28, 2007 There is a good tutorial here at phpfreaks.com on creating a templating system. It can be found here: http://www.phpfreaks.com/tutorials/8/0.php Link to comment https://forums.phpfreaks.com/topic/44619-how-to-go-about-a-basic-templating-system/#findComment-216686 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.