Home >Backend Development >PHP Tutorial >Thinkphp3.2 Common/common.php下定义函数

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:47:411238browse

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn