Home  >  Article  >  Backend Development  >  thinkphp3.2开发排错一例——D步骤首字母必须大写,否则自动验证失效

thinkphp3.2开发排错一例——D步骤首字母必须大写,否则自动验证失效

WBOY
WBOYOriginal
2016-06-13 11:55:531114browse

thinkphp3.2开发排错一例——D方法首字母必须大写,否则自动验证失效

$tousu = D('Tousujubao');//首字母必须大写,否则不会自动验证(但可以成功插入数据)

应该是D()里的参数必须与它的Model文件名一致,只是约定Model文件名首字母必须大写,且Model类名首字母也必须大写

Statement:
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