0

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

无法理解这里有什么问题。

4

1 回答 1

3

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

于 2012-09-29T05:17:35.903 回答