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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:47:41
Original
1267 people have browsed it

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

Related labels:
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template