我正在尝试在我的netbeans上设置Zend框架。当我运行应用程序时,我收到以下错误:
Warning: require_once(Zend/Application.php) [function.require-once]: failed to open stream: No such file or directory in C:\Documents and Settings\maryb\Desktop\ZEND\ZendFrameworkQuickstart-20100208\public\index.php
并出现以下错误:
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Application.php' (include_path='C:\Documents and Settings\maryb\Desktop\ZEND\ZendFrameworkQuickstart-20100208\library;.;C:\xampp\php\PEAR') in C:\Documents and Settings\maryb\Desktop\ZEND\ZendFrameworkQuickstart-20100208\public\index.php on line 17
我该如何解决?
答案 0 :(得分:1)
我认为你需要在所需的路径中添加Zend Library。请查看projectfolder/public/index.php
文件中的以下代码:
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../library'),
get_include_path(),
)));