Precautions for creating a Model class and precautions for creating a model _ PHP Tutorial

Source: Internet
Author: User
Notes for creating a Model class and precautions for creating a model. Note for creating a Model class. when creating a model, note that a Model class was created at work yesterday, and there was no problem in the Test environment, an error was reported in the production environment, notes for creating a Model class and precautions for creating a model

Yesterday, I created a Model class at work and tested it in the Test environment without any problems. when I got to the production environment, an error was reported. because the paging class was called, the error was reported: the _ count () function in row 520 does not exist.

My idea is: I first checked the specific error file in the production environment and found that the 520 rows _ count () function exists. I still cannot clear the runtime; the next step is to view the permissions of the Model class file. we found that the permissions of the other Model classes are 644, and it is OK to change the permissions to 664.

Pipeline created a Model class at work yesterday, and there was no problem in testing the environment. when it arrived in the production environment, an error was reported...

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.