thinkphp Call common/common.php function hints error function undefined resolution _php instance

Source: Internet
Author: User

This paper mainly introduces the solution of thinkphp call common/common.php function hint error functions undefined. For friends who use thinkphp for project development, they often encounter such problems after a thinkphp upgrade. The detailed description is as follows:

After the thinkphp upgrade, the most recent ThinkPHP3.2 version was used, and the common functions were put into common/common.php, but the function undefined error was prompted when the functions were called on a specific page.

After viewing the official document, I found that the original ThinkPHP3.2 version common.php file has been renamed Function.php,
So the common.php---> replaced function.php, the function call success! Problem solved!

It is hoped that the method described in this paper will help us thinkphp development.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.