在Zend框架中配置站点时显示致命错误

时间:2012-09-29 05:06:24

标签: php zend-framework

我想将网站配置到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

无法理解这里的问题。

1 个答案:

答案 0 :(得分:3)

我认为您已经两次创建了课程ExpediaRate,否则请查看您的application.ini文件可能是您的include path被设置两次。