Home > Backend Development > PHP Tutorial > Things to note when creating a new Model class, Things to note when creating a new model_PHP tutorial

Things to note when creating a new Model class, Things to note when creating a new model_PHP tutorial

WBOY
Release: 2016-07-12 09:03:34
Original
851 people have browsed it

Precautions for creating a new Model class, Precautions for creating a new model

Yesterday, I created a new Model class at work and tested it in the test environment without any problems. However, when I arrived in the production environment, I reported an error. Well, since the paging class is being called, the error message says: The _count() function does not exist at line 520.

My idea is: first go to the production environment and check the specific error file, and find that the _count() function exists in line 520. Cleaning up the runtime still does not work; the next step is to check the permissions of the Model class file, and find that it is 644. The permissions of other Model classes are all 664, so changing it to 664 is OK.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1080755.htmlTechArticlePrecautions for creating a new Model class. Precautions for creating a new model. Yesterday, I created a new Model class in the test environment at work. There were no problems at all in the test, but errors were reported in the production environment, by...
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