zend框架与codeigniter冲突
首先我应该说我对 php 和 Linux 管理非常陌生。
对于之前的站点 zend,我们安装在我们的生产机器上。我们决定放弃 zend 并使用 codeigniter。但是,一旦我将站点从本地推送到生产环境进行测试,我就会收到错误消息:
Fatal error: require_once() [function.require]: Failed opening required 'codeigniter/application/models/vo/navItemVO.php' (include_path ='.:/var/www/html/ZendFramework-1.5.2/library') 在 /var/www/html/staging/echo/website/codeigniter/application/models/wordpresshook_model.php 第 9 行
我假设服务器将使用 Zend 来调用它的函数,而不是使用 codeigniter。无论如何,是否可以在 .htaccess 中禁用或关闭 Zend。我看到博客条目或禁用优化器“php_value zend_optimizer.optimization_level= 0”,但这似乎不起作用。
我对任何其他选项持开放态度,但我无法在 php.ini 的根级别将其关闭
提前致谢!!!! 洛瑞-
First I should say I'm very new to php and linux admin.
For a previous site zend we installed on our production machine. We've decided to move off of zend and use codeigniter. However, once I pushed the site to production from local for testing I am getting errors stating that:
Fatal error: require_once() [function.require]: Failed opening required 'codeigniter/application/models/vo/navItemVO.php' (include_path='.:/var/www/html/ZendFramework-1.5.2/library') in /var/www/html/staging/echo/website/codeigniter/application/models/wordpresshook_model.php on line 9
I am assuming that the server is going to Zend to call it's functions vs going to codeigniter. Is there anyway to disable or turn off Zend in .htaccess. I see blog entries or disabling the optimizer "php_value zend_optimizer.optimization_level= 0" but this doesn't seem to be working.
I'm open to any other options, but I can't turn this off at the root level in php.ini
Thanks in advance!!!!
Lori-
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太了解 CI,但看起来您需要配置 CI 库文件的包含路径。
您可以在
php.ini
文件中配置此服务器,或者使用类似的东西在应用程序的引导/启动脚本中设置它I don't really know CI but it looks like you need to configure your include path to the CI library files.
You can configure this server wide in the
php.ini
file or set it in your application's bootstrap / startup script using something like