ThinkPHP调用common/common.php函数提示错误function undefined的解决方法_PHP

WBOY
Release: 2016-05-31 19:30:18
Original
862 people have browsed it

ThinkPHP

本文主要介绍了ThinkPHP调用common/common.php函数提示错误function undefined的解决方法。对于采用ThinkPHP进行项目开发的朋友来说,在进行ThinkPHP升级后经常会遇到这类问题。具体描述如下:

在对ThinkPHP升级后使用了最新的ThinkPHP3.2版本,将通用的函数放到了common/common.php中,但是在具体页面调用函数时出现了function undefined的错误提示。

在查看了官方文档后发现,原来ThinkPHP3.2版本common.php文件已经改名为function.php
于是将common.php--->换成function.php,函数调用成功!问题解决!

希望本文所述方法对大家ThinkPHP开发有所帮助。

Related labels:
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!