在xampp上安装zend框架

San*_*alp 2 zend-framework

我完全赞成ZEND FRAMEWORK.我试图安装,但收到了一些错误.

当我使用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. 使用路径C运行cmd:\ xampp\php \(其中我的确切zf.bat文件)
  5. 运行命令zf show version以zf错误结束,我的zend框架应该在include路径中.

    • 如何解决此错误?
    • 问题解决了我的下一个命令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
Run Code Online (Sandbox Code Playgroud)