0

我正在尝试在我的 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

我该如何解决?

4

1 回答 1

1

我认为您需要在所需路径中添加 Zend 库。查看projectfolder/public/index.php文件中的以下代码:

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library'),
    get_include_path(),
)));
于 2012-05-20T14:07:48.487 回答