According to Hasin: “Smarty is dead”.
Hasin Hayder, one of the authors of the Smarty book said:
“I seriously don’t think there is need of Smarty any more. It’s dead! If you guys don’t agree with me, you can spend hell lot of time learning that {$name} actually does what you could do with “echo $name”.”
He finished the post saying:
“Sometimes it’s better to realize that it’s time to unlearn something.”
And replying to some of the user comments he added:
“Some of you commented that to keep designers away from PHP and to keep it safe, we should go for smarty. But is there really any designer who knows only smarty and no PHP? Is it really possible to write efficient code in smarty without knowing PHP? Nah, not at all.”
Read the full post here: Once upon a time there was smarty
Aren’t smarty templates ’safer’ than direct PHP? Building a user configurable system that allows site maintainers to upload templates without worrying about rouge code with system calls and embedded database commands.
It would seem that this Smarty or an advanced template system would be a valuable addition to applications with user configurable views.
Am I missing something?
"David Bennett"
May 2, 2008 at 6:45 pm
I agree with David. I like using Smarty because it forces you to keep the ‘V’ in MVC separate from ‘M’ and ‘C’.
It’s also a lot more elegant and easier to read than PHP scripting views.
Dominic K.
May 6, 2008 at 10:37 pm
nonsense. It can be something other then smarty but information tagging MUST NOT BE php, our designer at our company tags everything with smarty where which block will come and etc.. some more advaced stuff of smarty is for developer. for example it possible to make even template generator in webapp.. 100x easier to live. + why everybody forget about cache? it’s not working primitively as we think, it very well optimized in another ways belive me. + debug… anyway BIG example. I downloaded good opensource CMS and it’s using smarty. So I can tag my templates very easily. I don’t need to know he’s stupid php variables because all cms coded within even OOP X_X. so smarty is best way here, quick to debug, quick to tag, quick to live.
holms
May 14, 2008 at 12:50 pm
Smarty is not dead, it has just probably had its areas of application shrink
Kaloyan K. Tsvetkov
February 5, 2009 at 8:23 pm