2013-05-16 39 views
0

我已經獲得了使用Zend的項目的所有權1.11 我在一段時間內沒有使用過Zend(更不用說設置它了),而且我遇到了問題還原包括2.4.0至1.11.11xampp 1.8.1 - 還原爲zend 1.11

到Zend的唯一的參考是在這裏: C:\ XAMPP \ PHP \梨\庫\ Zend的

有一些別的地方,可能使我的生活更容易嗎? 這甚至可能嗎?

回答

1

您可以同時運行ZF1.x和ZF2.x。只需將當前版本的ZF1.12放入您想要的位置,然後將其放在php include_path中,或者將該庫放入應用程序的庫中即可。 ZF1代碼不會嘗試使用ZF2組件,反之亦然(它們使用完全不同的名稱空間類型)。

例如:

的ZF1.12.3最小當前下載的有提取時,這種結構:

C:\Users 
    \user 
     \Downloads 
      \ZendFramework-1.12.3-minimal 
       \ZendFramework-1.12.3-minimal 
        \bin /*This is where the zf.bat and zf.sh live add this path the windows path variable to use Zend_Tool CLI */ 
        \library 
         \Zend /*This is where the actual code is*/ 

取整\Zend文件夾,並把它:

\project 
    \application 
    \library /*Put the Zend Folder here, it will be automatically included in the app*/ 

或放它在任何你想要的地方,只需將該路徑添加到php.ini include_path即可。

這一切都假設Zend Framework應用程序的自動加載器代碼中沒有任何更改。如果使用默認值不起作用,請發佈您的application.inibootstrap.php,因爲這些文件通常會包含更改默認值的代碼。