alexweber15 Posted June 2, 2009 Share Posted June 2, 2009 I noticed Smarty hadn't received an update in a few months dating back to last year (up until recently) and with a lot of talk I've been hearing recently about PHP as its own templating language being the best option I turn to you guys: Is Smarty still a good choice and in what cases? For example: How well does Smarty + MVC Framework (Zend, Yii, etc) perform? I realize that Smarty is probably the best templating engine for PHP out there but I've become slightly discouraged recently... how many of you actually use it on a regular basis? Thanks! Alex Quote Link to comment https://forums.phpfreaks.com/topic/160587-smarty-template-still-viable/ Share on other sites More sharing options...
Alt_F4 Posted June 2, 2009 Share Posted June 2, 2009 I've use smarty in the past, not a huge fan though. I prefer to use php to separate my logic from my presentation by using classes etc. As far as i'm concerned it works just as well I dont see the point of using something else to do what php can do itself. BTW I fear you may have opened a can of worms here Just my 2 cents Quote Link to comment https://forums.phpfreaks.com/topic/160587-smarty-template-still-viable/#findComment-847526 Share on other sites More sharing options...
Ken2k7 Posted June 2, 2009 Share Posted June 2, 2009 I'm not a fan of Smarty either. Quote Link to comment https://forums.phpfreaks.com/topic/160587-smarty-template-still-viable/#findComment-847539 Share on other sites More sharing options...
gizmola Posted June 2, 2009 Share Posted June 2, 2009 Many projects continue to use smarty. It hasn't changed much because it's been relatively stable. Some people love smarty and others hate it. At the end of the day the goal of smarty is to seperate the markup related code from program logic, as well as adding in page caching. It should be pointed out that at the time, smarty only addressed the markup side of the issue, and left the rest of it to be solved by others. Now there are any number of mature php frameworks out there that have a complete top to bottom solution to the problem. Smarty can be used with newer frameworks. I worked on a project recently where Zend framework was used for the server side code, while the UI/frontend was all done with smarty templates. Ultimately it was my opinion that the templates ended up with way too much business logic in them, but it certainly worked acceptably. If you already know smarty very well and are productive in it, then it continues to be a viable option. With that said, I think it's rather long in the tooth at this point, and would prefer something that was native to whatever framework I was working in, so long as those frameworks provided at least as much seperation and functionality as well as the same caching capabilities. Caching is certainly important in a lot of high traffic scenarios. Quote Link to comment https://forums.phpfreaks.com/topic/160587-smarty-template-still-viable/#findComment-847568 Share on other sites More sharing options...
roopurt18 Posted June 2, 2009 Share Posted June 2, 2009 PHP as its own templating language That right there. Quote Link to comment https://forums.phpfreaks.com/topic/160587-smarty-template-still-viable/#findComment-847581 Share on other sites More sharing options...
phpFirstJoy Posted June 2, 2009 Share Posted June 2, 2009 I prefer to use php to separate my logic from my presentation I dont see the point of using something else to do what php can do itself. BTW I fear you may have opened a can of worms here Ditto on all three points! Plus it's one less set of syntax to memorize which is always good for the Alma mater. Quote Link to comment https://forums.phpfreaks.com/topic/160587-smarty-template-still-viable/#findComment-847586 Share on other sites More sharing options...
alexweber15 Posted June 2, 2009 Author Share Posted June 2, 2009 thanks for the replies and that's kind of what I was expecting to hear! I've read up on Smarty in the past and done a few small things but there was always a lot of business logic going on specially when passing objects to the view... Quote Link to comment https://forums.phpfreaks.com/topic/160587-smarty-template-still-viable/#findComment-847809 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.