[英]Templating systems for Symfony 1.4
I've recently started to learn symfony framework and I wonder what are the best choices for a templating system? 我最近开始学习symfony框架,我想知道什么是模板系统的最佳选择?
Some suggest to just use PHP but I don't really like that (btw, see this interesting article ). 有人建议只使用PHP,但我真的不喜欢它(顺便说一句,看到这篇有趣的文章 )。
Before I started with symfony, I used - and liked - Smarty. 在我开始使用symfony之前,我使用了 - 并且喜欢 - Smarty。
Are there better options for symfony? symfony有更好的选择吗?
尝试Twig (由Sensio / Fabien Potencier开发)...有一个symfony 1.4的插件 ,它将是Symfony2中的默认模板包
If you liked Smarty and want to use it in Symfony2 this is possible by adding SmartyBundle . 如果您喜欢Smarty并希望在Symfony2中使用它,可以通过添加SmartyBundle来实现 。 Check out the documentation for installation and usage details.
查看文档以获取安装和使用详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.