什么意思是PHP框架中的辅助函数? [英] Whats means helper function in frameworks of PHP?
本文介绍了什么意思是PHP框架中的辅助函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我开始研究doc laravel和joomla框架,
他们使用术语帮助函数。
我的问题是什么意思帮手功能;
感谢您的关注
我尝试了什么:
i搜索没有找到好的指南。
i start to study doc laravel and joomla framework,
they uses a term helper function.
my question is what means helper function;
thanks for attention
What I have tried:
i searched not finding good guide.
推荐答案
在你的视图脚本中,通常需要执行反复使用某些复杂功能:例如,格式化日期,生成表单元素或显示操作链接。您可以使用帮助程序或插件类来为您执行这些行为。
In your view scripts, often it is necessary to perform certain complex functions over and over: e.g., formatting a date, generating form elements, or displaying action links. You can use helper, or plugin, classes to perform these behaviors for you.
这篇关于什么意思是PHP框架中的辅助函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文