Re: templating

From: Date: Thu, 22 Jun 2006 11:51:05 +0000
Subject: Re: templating
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-238509@lists.php.net to get a copy of this message
IMHO I would go with Smarty as it has excellent documentation and would fit almost anything that the project would require. I also think it would be a cleaner way of templating than using str_replace() over and over again. For what it's worth, I use Smarty on almost all of my projects, large and small. I find that once you learn it you can use it to develop new sites rather quickly. ...and it's not like using a nuke to kill a fly - Smarty only loads the files it needs as it needs them instead of loading everything - so it's quite fast really. - Joe On Jun 22, 2006, at 7:10 AM, Ryan A wrote:
Hi, A pal of mine needed some help on his project, he is using a "header" and "footer" file to "template" his project... but its gotten a bit complicated as he has a few dynamic parts in the header and footer files, so I told him to go with a proper templating method of templating the whole page rather than includ()ing the top and bottom. After having a better look at his scripts, I am just not sure if something big (like SMARTY for instance) would be good for him. He just needs maybe 5 template pages, same pages, different color. Searching google I see literally hundreds of "templating solutions" can anyone recommend a simple one or should I tell him to just use str_replace() for tags like: {{menu_here}} {{header_here} etc? Something like SMARTY would be like using a nuke to kill a fly (IMHO) esp since this project will not expand to anything much bigger or complicated. Thanks! Ryan ------ - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#238509) next »