PHP has written a class function, but reported a fatal error can not find the class

Source: Internet
Author: User
Tags blank page

Today, when I was doing the Rongcheng project, I made a low-level mistake. Using the online server test to display a blank page, I opened the phpstudy and tested it locally, and it gave me a hint of the error:

But I have already written table_yanpan_report_muban this data table class function, why do I not find it? Depressed for a long time, and later through a variety of information to find the problem;

Because I used the company framework and introduced a third-party class library, because the framework prescribes the naming rules for class files, this kind of bizarre phenomenon occurs when the class file name to be introduced does not conform to the specification of the framework, for example, the THINKPHP3 series class filename naming convention is "***.class.php", Laravel class file name is not allowed with "." In the Laravel framework, such as ****.php, which is unlawful in the Laravel framework, such as the ****.***.php of such an item.

The framework I use is just the "***.class.php" naming convention, so I get an error. After the modification, it will be displayed normally.

PHP has written a class function, but reported a fatal error can not find the class

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.