View Single Post
  #3 (permalink)  
Old 05-25-2008, 09:29 AM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 10,838
Last Blog:
PHP Security: Temporar...
Credits: 1
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default Re: How to Create a Template

Before my CMS days I always created a header.php and footer.php. I included these on all pages after that and it was fairly easy to update and maintain. I think a better method is to make a header.php, footer.php and index.php. The index file would have a select/case statement and receive a variable input. Depending on the variable it would automatically load the page the user is requesting. It would also include your header/footer.php file only once.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Reply With Quote