【问题标题】:zend framework installation on xamppxampp上的zend框架安装
【发布时间】:2012-12-08 15:05:41
【问题描述】:

我完全是 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:\xampp\php\(我的确切 zf.bat 文件所在的位置)运行 cmd
  5. 运行命令 zf show version 以 zf 错误结束,我的 zend 框架应该在包含路径中。

    • 如何解决此错误?
    • 问题是否解决了我的下一个命令zf create project zend_blog 是否正确?
    • 如何使用 zf1 和 zf 2 创建项目?

【问题讨论】:

    标签: zend-framework


    【解决方案1】:
     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
    

    【讨论】:

      【解决方案2】:

      它与 XAMPP 无关。某些内容未配置正确或权限不正确。

      查看这些:

      【讨论】:

      【解决方案3】:

      您需要将 zend 框架路径和 php.exe 路径放入您的windows path variable 以便从命令行运行命令。这在 ZF1 中很重要,因此 Zend_Tool 将在命令行或 Netbeans 或其他 Ide 中工作。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2011-09-23
        • 1970-01-01
        • 1970-01-01
        • 2016-01-19
        • 2012-05-20
        • 2012-12-01
        • 1970-01-01
        相关资源
        最近更新 更多