dmcglone Posted May 24, 2013 Share Posted May 24, 2013 Is it even worth learning Smarty? I've dabbled with it, but it just seems like too much of a pain. Quote Link to comment https://forums.phpfreaks.com/topic/278368-smarty/ Share on other sites More sharing options...
trq Posted May 25, 2013 Share Posted May 25, 2013 We use smarty at work and it is a bloated unnecessary PITA. I see very little benefit to templating engines in general and Smarty especially. Quote Link to comment https://forums.phpfreaks.com/topic/278368-smarty/#findComment-1432160 Share on other sites More sharing options...
448191 Posted May 25, 2013 Share Posted May 25, 2013 We use Twig. I've worked with Smarty and plain HTML/PHP in ZF but Twig provides a good balance between flexibility and enforcement of SoC. It is somewhat complex, as is Smarty, but our front-enders are very enthusiastic about it. And based on what little work I've done using it, I already like it better than those two alternatives as well. So on the question whether or not to learn Smarty: don't bother. Some years ago Smarty was a de-facto standard for templating in a professional environment, but unless you expect a lot of exposure to legacy systems I really wouldn't bother. Quote Link to comment https://forums.phpfreaks.com/topic/278368-smarty/#findComment-1432167 Share on other sites More sharing options...
dmcglone Posted May 25, 2013 Author Share Posted May 25, 2013 (edited) Thanks, I like what I hear. :-)I am struggling with organization of my dir structure, code pages and projects and it makes me feel unorganized and dirty, not to mention harder to remember where that code was that I need to find. I just can't seem to find that balance, so I thought I'd try and see if Smarty would help here, but it doesn't seem worth the hassle. :-/ Edited May 25, 2013 by dmcglone Quote Link to comment https://forums.phpfreaks.com/topic/278368-smarty/#findComment-1432173 Share on other sites More sharing options...
448191 Posted May 25, 2013 Share Posted May 25, 2013 Well, if your UI is complex enough to get confused about organizing files (which doesn't take much), templating isn't your main concern, probably. Depends on the purpose and potential scope of your application I guess but I would be much more worried about my service layer and domain model. Again, depends on your project but personally I tend to focus on those and have the UI be a logical consequence of that that design (actually IRL there are some other people involved). But that might be skipping a few steps for you, or not, no idea. Quote Link to comment https://forums.phpfreaks.com/topic/278368-smarty/#findComment-1432179 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.