Hall of Famer Posted November 19, 2012 Share Posted November 19, 2012 Just curious. Smarty has easier syntax and is actually slightly faster than Twig in many circumstances, are there any other significant advantages Twig provides but Smarty aint? Or is this just a matter of choice made by Symfony developers? Quote Link to comment https://forums.phpfreaks.com/topic/270923-is-there-a-reason-why-symfony-2-uses-twig-but-not-smarty/ Share on other sites More sharing options...
Adam Posted November 20, 2012 Share Posted November 20, 2012 Twig was written by the same guy as Symfony. Where does your evidence come from that Smarty is faster though? Quote Link to comment https://forums.phpfreaks.com/topic/270923-is-there-a-reason-why-symfony-2-uses-twig-but-not-smarty/#findComment-1393673 Share on other sites More sharing options...
Hall of Famer Posted November 20, 2012 Author Share Posted November 20, 2012 Here's one: http://umumble.com/blogs/php/249/ But anyway, its not a really big deal. I was just wondering if there was a particular reason to use Twig instead of Smarty, you have answered my question. Guess it makes sense if the developer for Symfony and Twig is the same guy. Quote Link to comment https://forums.phpfreaks.com/topic/270923-is-there-a-reason-why-symfony-2-uses-twig-but-not-smarty/#findComment-1393704 Share on other sites More sharing options...
xylex Posted November 30, 2012 Share Posted November 30, 2012 One of the nice things with how Twig integrates with Symfony is that it makes it really easy to do edge side includes (ESI). If you can leverage that for performance, getting stuff cached before your server will obviously blow away any benchmark. Quote Link to comment https://forums.phpfreaks.com/topic/270923-is-there-a-reason-why-symfony-2-uses-twig-but-not-smarty/#findComment-1396552 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.