need your opinion about templating...

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

need your opinion about templating...

Post 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. :)
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post 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 :)
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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...
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post by AKA Panama Jack »

Image

Points at signature...
Post Reply