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

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
User avatar
redwarp
Forum Members
Forum Members
Posts: 37
Joined: Wed Mar 24, 2010 5:36 pm

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

Post 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
Last edited by redwarp on Sat May 15, 2010 7:55 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

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

Post by Jos »

I guess Smarty gives you the answer: http://www.smarty.net/whyuse.php
User avatar
redwarp
Forum Members
Forum Members
Posts: 37
Joined: Wed Mar 24, 2010 5:36 pm

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

Post by redwarp »

Good answer ! nice :)
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

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

Post by Dr.CSS »

Jos, Very nice link, thanks...
Post Reply

Return to “Developers Discussion”