temlates issue

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
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

temlates issue

Post by itsmani1 »

i want to work on template based sites. can anyone guide me on this, that how should i read my template file etc.
my main question is that once you have read the template then how you will this file?
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post by foobar »

I think your best bet is to use an out-of-the-box template system like Smarty or Savant.
Both are quite extensive, although you will have to learn a special syntax to use Smarty
If you are reluctant, and would rather use PHP as a templating language, go for Savant.
IIRC, both have template caching, and Savant even allows you to implement a different template compiler to the default one.
dreamline
Forum Contributor
Posts: 158
Joined: Fri May 28, 2004 2:37 am

Post by dreamline »

I hear Smarty is quite extensive on templating and uses some special scripting. However i am studying phpBB right now and see how the basics are done and i must say i can follow it up to now.... :)
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

phpBB appears to use macro substitution. It's just {*} is magical and will get substituted.
Post Reply