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...