Home >Backend Development >PHP Tutorial >Things to note when creating a new Model class, Things to note when creating a new model_PHP tutorial
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.