我想将网站配置到Zend框架中,但在配置代码时显示以下错误:
1. Fatal error: Cannot redeclare class ExpediaRate in
/var/www/sitename/application/models/Search.php on line 3012 Call
Stack: 0.0003 371520 1. {main}()
/var/www/sitename/public/index.php:0 0.0087 1220360
2.
Zend_Application->bootstrap() /var/www/sitename/public/index.php:97
0.0087 1220404
3. Zend_Application_Bootstrap_BootstrapAbstract->bootstrap()
/var/www/sitename/library/Zend/Application.php:355 0.0087 1220404
4.
Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap()
/var/www/sitename/library/Zend/Application/Bootstrap/BootstrapAbstract.php:583
0.0191 2475264
5. Zend_Application_Bootstrap_BootstrapAbstract->_executeResource()
/var/www/sitename/library/Zend/Application/Bootstrap/BootstrapAbstract.php:619
0.0191 2475452
6. Bootstrap->_initModels() /var/www/sitename/library/Zend/Application/Bootstrap/BootstrapAbstract.php:666
0.0290 3903156 7.
require_once('/var/www/sitename/application/models/Search.php')
/var/www/sitename/application/Bootstrap.php:32
无法理解这里的问题。
答案 0 :(得分:3)
我认为您已经两次创建了课程ExpediaRate
,否则请查看您的application.ini
文件可能是您的include path
被设置两次。