Page 1 of 1

[SOLVED] Smarty or not smarty ? That is the question...

Posted: Sat May 15, 2010 9:59 am
by redwarp
Hello. Well, I have been wondering for a long time now : what are the pros and the cons of using smarty template over just regular php ?
I mean, php is a langage I know. (or partially know). The whole module is written in php. But. For. Templates. People use smarty.
That's basically another langage, and as it has to be parsed by some php function, I can't believe it's fast.

I'm not against it, I'm just trying to understand why smarty is recommended for templates.

If someone can bring light to the darkness of my puzzlement...

Thanks in advance.

--
Redwarp

Re: Smarty or not smarty ? That is the question...

Posted: Sat May 15, 2010 10:01 am
by Jos
I guess Smarty gives you the answer: http://www.smarty.net/whyuse.php

Re: Smarty or not smarty ? That is the question...

Posted: Sat May 15, 2010 7:54 pm
by redwarp
Good answer ! nice :)

Re: [SOLVED] Smarty or not smarty ? That is the question...

Posted: Sun May 16, 2010 9:10 pm
by Dr.CSS
Jos, Very nice link, thanks...