【发布时间】:2014-06-04 03:12:46
【问题描述】:
表格是“rate_chapters”
模型文件名为“rateChapter”
模型类名称是“rateChapter” 类 RateChapter 扩展 AppModel{ }//文件名为rate_chapter.php
当我查询这个模型时,我得到一个错误:致命错误:无法重新声明类
//在控制器中
$this->rate_chapter->find('all');
不了解命名约定。读了,但不清楚..
【问题讨论】:
-
这还不够,显示你的代码
标签: php cakephp naming-conventions models