Heim >Backend-Entwicklung >PHP-Tutorial >Thinkphp3.2 Common/common.php下定义函数

Thinkphp3.2 Common/common.php下定义函数

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:47:411253Durchsuche

Thinkphp3.2 MyProject/Common/common.php或者在MyProject/Commom/Common/common.php下定义的函数不能在Controller或者在模板中使用,
系统提示报Call to undefined function,我开启了调试模式,同时也试过删除了Runtime。
请问我要在TP3.2中使用自定义函数应该放在哪(3.2版)? 希望了解的朋友们帮个忙,谢谢了。

回复内容:

Thinkphp3.2 MyProject/Common/common.php或者在MyProject/Commom/Common/common.php下定义的函数不能在Controller或者在模板中使用,
系统提示报Call to undefined function,我开启了调试模式,同时也试过删除了Runtime。
请问我要在TP3.2中使用自定义函数应该放在哪(3.2版)? 希望了解的朋友们帮个忙,谢谢了。

function.php

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn