Home > php教程 > php手册 > body text

新建一个Model类的注意事项,新建model注意事项

WBOY
Release: 2016-06-13 08:49:51
Original
1606 people have browsed it

新建一个Model类的注意事项,新建model注意事项

  昨天在工作中新建了一个Model类在测试环境测试一点问题也没有,到了生产环境就报错了,由于调用的是分页类,报错说:在520行 _count() 函数不存在。

  我的思路是:先到生产环境查看了具体的报错文件,发现520行 _count() 函数存在,把runtime清理了还是不行;下一步是查看Model类文件的权限,发现是644,而其他Model类的权限都是664,修改为664就OK了。

 
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!