aplication/model/newsModel.php中的模型
class models_newsModel extends Zend_Db_Table_Abstract{
}
application\controllers\LoginController.php中的控制器
我尝试创建对象来建模
$this->news = new models_newsModel();
并得到错误:*Class 'models_newsModel' not found in C:\wamp\www\sistema\application\controllers\LoginController.php on line 27*
也许问题出在我的 application.ini 中
[production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
; ADD THE FOLLOWING LINES
;resources.layout.layout = "layout"
;resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
[staging : production]
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1