need your opinion about templating...
Moderator: General Moderators
need your opinion about templating...
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. 
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
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.
The reality is that Smarty has a fairly simple syntax to learn - it's not a new PHP
I suggest digging out a few tutorials and getting your feet wet using it - it has a small learning curve.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
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
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
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
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...
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...
- AKA Panama Jack
- Forum Regular
- Posts: 878
- Joined: Mon Nov 14, 2005 4:21 pm
