Page 1 of 1
need your opinion about templating...
Posted: Fri Apr 28, 2006 2:11 am
by pleigh
hi, i am a newb in smarty templating and i am tasked to do a big project...i need to know your opinion on what to use...should i use smarty templating or other templating system, or stick with php??someone in my department will be designing the site, and my task is to add functionalities to it...every now and then, they will be updating the design of the site, and some advised me to ddo it in smarty, but again, i am very much new to smarty...thanks.

Posted: Fri Apr 28, 2006 2:47 am
by Maugrim_The_Reaper
Sort of covered the basics...
viewtopic.php?t=47273
The reality is that Smarty has a fairly simple syntax to learn - it's not a new PHP

. I suggest grabbing the manual and reading up on its API and tag system. The only problem I have with Smarty usage wise, is that a few of the tags annoyingly unintuitive - sections and foreach anyone? It's a solid system however, and you can write Smarty templates as if they were normal html - it's not hugely abstract unless you go overboard on using its plugins.
I suggest digging out a few tutorials and getting your feet wet using it - it has a small learning curve.
Posted: Fri Apr 28, 2006 2:57 am
by alex.barylski
If your new to templating use Smarty:
1) I prefer using native PHP but Smarty promotes separation a little more strictly...
2) Use Smarty lite...it's faster and better
3) Use Smarty because it's the best known and most popular and well supported....
Plenty of help from others is available...which is important when learning anything new...
Cheers

Posted: Fri Apr 28, 2006 3:22 am
by Maugrim_The_Reaper
Smarty-Lite was shut down due to a trademark complaint from Smarty (it's not registered to my knowledge). There is now a replacement based on the SL code called Template-Lite, maintained by Panama Jack.
http://templatelite.aatraders.com/
I think it's missing the Smarty template security features (to be added), but otherwise it's right in there as a Smarty compliant alternative that manages to be faster and use less memory. There's a Sourceforge and Freshmeat entry for it somewhere...
Posted: Fri Apr 28, 2006 12:29 pm
by AKA Panama Jack
Points at signature...