Template design

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pinehead18
Forum Contributor
Posts: 329
Joined: Thu Jul 31, 2003 9:20 pm

Template design

Post by pinehead18 »

Of course the age old question, what is the best way to create a template for a heavily used SQL site.

My current lay out is prehaps not the best one, i use a fucntion as my template html function start_headter($body); and $body is the individual html/ coding for everypage.

I've always come into stupid . ' "" ' " problems and was curious is there a better way to handle this.

All my php code is on a functions page, and each page just calls the functions for the functions page.
How should i throw my template in there? Includes/Functions/ Thank you all for your input!
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

Why not use a premade template system such as smarty?
Post Reply