php functions using with smarty template [closed]

拈花ヽ惹草 提交于 2019-12-13 10:00:30

问题


please give some note about php functions using with smarty template


回答1:


Smarty does allow you to call PHP functions, but it's assumed that you shouldn't need to and so it's not as easy as it could be. The general philosophy of Smarty is that you should avoid tying your templates too closely to your application code (i.e. the PHP), as this would make Smarty itself somewhat redundant.

This thread may be of use:

http://www.smarty.net/forums/viewtopic.php?p=46985




回答2:


Yes, the smarty template engine does work with PHP. If you wish to have a look at a tutorial have a look at the smarty website.



来源:https://stackoverflow.com/questions/4385382/php-functions-using-with-smarty-template

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!