开发者

can we use smarty with zend framework?

开发者 https://www.devze.com 2023-01-03 06:23 出处:网络
Any body know can we use smarty with zend framework. If yes what开发者_如何学Python is the advantage of using like that?You can, it\'s not much work.

Any body know can we use smarty with zend framework. If yes what开发者_如何学Python is the advantage of using like that?


You can, it's not much work. But i can tell you i switched from Smarty to Zend_View a long time ago, those view-helpers are a real elegant way working with the zend framework components and wrapping them for smarty is a really non-trivial task, as smarty templates yet not know arrays, and you will need them often: URL-View-Helper and many more.

Skip Smarty it's the best choice when working with the Zend_Framework ;)


Check out

http://devzone.zend.com/article/120

and

http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine/


The only advantage i see to use Smarty is for a Smarty Experienced team. The idea is great, but php is already a template language (besides others things). I like the PHPTemplate engine of Drupal.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号