Which web template system do you recommend?

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

Which web template system do you recommend?

Chip
0
No votes
Smarty
1
50%
Template Power
0
No votes
Template Attribute Language (TAL)
0
No votes
VlibTemplate
0
No votes
Other (Please Post)
1
50%
 
Total votes: 2

User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Which web template system do you recommend?

Post by JAB Creations »

So I found what I was looking for and instead of making another thread I decided to morph this one and add a poll.

Which web template system do you recommend?

I've heard of smarty before though did not comprehend what it was intended for. Any way I'm prefer something that is efficient (server load wise), gives me flexibility, and updates are stable...as in when I update to the next version there will be minimal if no breakage. Suggestions please?

Original Post Below
Phorum and Sphider use some kind of PHP/XHTML function template that I'm trying to figure out how to replicate though I'm not really having much luck.

I think it's the best way to separate PHP and XHTML and would like it to become part of my regular programming since I'm now working with MySQL on a regular basis now.

Here is what the clientside template looks like in example from Phorum...

Code: Select all

{IF ERROR}<div class="attention">{ERROR}</div>{/IF}
{IF OKMSG}
 
{OKMSG}
{IF URL->CLICKHERE}
<p><a href="{URL->CLICKHERE}" tabindex="3">{CLICKHEREMSG}</a></p>
{/IF}
 
 
{IF URL->REDIRECT}<p><a href="{URL->REDIRECT}" tabindex="3">{BACKMSG}</a></p>{/IF}
 
</div>
{/IF}
I presume that they are finding and replacing the {} curly brackets and executing these functions somehow?

I've tried looking up tutorials on the search engine but I'm clearly not making the correct references if there is any way to reference this as function template style? If I could get a starting idea of the general formula I could take a serious crack at trying to code something really simple. Suggestions?
Post Reply