2012-12-21 90 views
2

我完全使用ZEND FRAMEWORK。我試圖安裝,但出現了一些錯誤。xampp上的zend框架安裝

隨着zf @ 1版本的安裝。

  1. 我將文件夾解壓到路徑中。 C:\xampp\php將其命名爲zendframework。
  2. 我編輯我的php.ini文件的include_path爲include_path = ".;C:\xampp\php\PEAR;C:\xampp\php\zendframework\library"
  3. 重新啓動的服務器。
  4. 運行CMD與路徑C:\ XAMPP \ PHP \(其中我的確切zf.bat文件)
  5. 運行命令zf show version與ZF的錯誤,我的Zend框架應該是在包含路徑結束。

    • 如何解決這個問題?
    • 問題解決了我的下一個命令zf create project zend_blog是正確的嗎?
    • 如何使用zf1和zf 2創建項目?

回答

5
Follow the given Instruction Below. 


    • Go to ‘My Computer’ > Properties > Advanced Tab > Environment Variables. 
    Environment Variables box will open, View SYSTEM VARIABLES, 
    scroll the list to ’ PATH ‘ > double click ’ PATH ‘ . 
     Add the following line to the end of the PATH C:\xampp\php 
    Zend Framework 
    • Extract the Zend Framework files to C:\xampp\php\zf. 
    • Edit the php.ini file. You will find it at C:\xampp\php\php.ini. 
    Find the line that says ’ include_path ’ and edit the line: 
Windows: 「\path1;\path2″ 
    include_path = 「C:\xampp\php\zf\library」 
    • Open a shell and cd to C:\xampp\htdocs folder and type this: 
    C:\xampp\htdocs>C:\xampp\php\ZendFramework\bin\zf.bat create project testproject(project name) 


    • Now Copy the Zend Folder from your ZendFramework folder (C:\xampp\php\zf/library /Zend) into the library folder of your new test project (C:\xampp\htdocs\testproject\library\Zend 
+0

BHAI pahle是回答KO運行karunga mai ... – kapil

0

它無關XAMPP。有些東西配置不正確或權限不正確。

看到這些:

+1

當我試圖使用NetBeans我下面的錯誤'「的php.exe」」不被識別爲一個內部或外部命令, 運行程序或批處理file.' – Sankalp

+0

嘗試使用完整路徑 – Alex

+0

檢查有教程結束:http://netbeans.org/kb/docs/php/configure-php-environment-windows.html和http://netbeans.org/kb/docs/php/project-setup.html – Alex

0

您需要將zend框架路徑和php.exe路徑放入您的windows path variable以便從命令行運行命令。這在ZF1中很重要,因此Zend_Tool可以在命令行或Netbeans或其他Ide中使用。