2012-05-20 132 views
0

我試圖建立Zend框架在我netbeans.When我跑我得到以下錯誤的應用程序:設置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 

我該如何解決它?

回答

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(), 
))); 
+0

我應該在那裏更改哪些內容? – mary

+0

在'project-folder/public/index.php'中設置正確的路徑到你的庫中,或者相應地在正確的位置添加你的Zend庫。 – NAVEED

+0

通常我們在'projectd-folder/library/Zend'中添加** Zend Library ** – NAVEED