thinkphp Call common/common.php function tip error undefined workaround _php instance

Source: Internet
Author: User
This paper mainly introduces the solution to the error function undefined called by thinkphp call common/common.php functions. For a friend who uses thinkphp for project development, this kind of problem is often encountered after the thinkphp upgrade. Described below:

The latest version of ThinkPHP3.2 was used after the thinkphp upgrade, and the general function was put into common/common.php, but a function undefined error occurred when invoking the functions on the specific page.

After reviewing the official documentation, it was found that the original ThinkPHP3.2 version common.php file has been renamed Function.php,
So the common.php---> Changed to function.php, the function call succeeds! Problem Solving!

It is hoped that the method described in this article will be helpful to 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.