2015-01-24 5 views
0

나는이 게시물이 zend framework zf command not working 인 것과 같은 문제가 있지만이 게시물을 여러 번 읽으면이 문제가 해결되지 않는다는 것을 알았지 만이 게시물이 말한 것을 시도하지만 여전히 작동하지 않습니다. . 나는이 오류 얻을 명령 줄에서 "ZF는 프로젝트 빠른 시작을 만드는"실행하면 내가 XAMPP 및 Windows 8과 함께 오전 :Zend Framework의 zf 명령이 Windows에서 zf 오류를 출력합니다.

***************************** ZF ERROR ******************************** In order to run the zf command, you need to ensure that Zend Framework is inside your include_path. There are a variety of ways that you can ensure that this zf command line tool knows where the Zend Framework library is on your system, but not all of them can be described here.

The easiest way to get the zf command running is to give it the include path via an environment variable ZEND_TOOL_INCLUDE_PATH or ZEND_TOOL_INCLUDE_PATH_PREPEND with the proper include path to use, then run the command "zf --setup". This command is designed to create a storage location for your user, as well as create the zf.ini file that the zf command will consult in order to run properly on your system.

Example you would run:

$ ZEND_TOOL_INCLUDE_PATH=/path/to/library zf --setup

Your are encourged to read more in the link that follows. Zend_Tool & CLI Setup Information (available via the command line "zf --info") * Home directory found in environment variable HOMEPATH with value \Users\myuser * Storage directory assumed in home directory at location \Users\myuser/.zf/ * Storage directory does not exist at \Users\myuser/.zf/ * Config file assumed in home directory at location \Users\myuser/.zf.ini * Config file does not exist at \Users\myuser/.zf.ini

To change the setup of this tool, run: "zf --setup"

을 I 않는 :

환경 변수 -> 시스템이 같은 변> 경로와 내가 언급 한 게시물로 C : \ Zend \ ZendServer \ share \ ZendFramework \ bin 을 추가했지만 작동하지 않습니다. 시스템 변수에 새 변수를 추가하려고하면 C : \ Zend \ ZendServer \ share \ ZendFramework \ library 값의 ZEND_TOOL_INCLUDE_PATH가 호출되고 다시 시작되며 작동하지 않습니다. "zf --setup"을 실행하면 같은 오류가 발생합니다. zf.bat 및 zf.php를 C : \ xampp \ php에 복사합니다.

답변

0

당신은 당신의 의 php.ini 파일에이 줄을 추가하여 php's include path이 경로 C:\Zend\ZendServer\share\ZendFramework\library을 추가해야합니다. 당신이 windowsxampp를 사용하는 경우

여기 C:\xampp\php

당신은 당신의 의 php.ini이를 찾아야한다 php.ini의를 찾을 수 :

; Windows: "\path1;\path2" 
include_path=".;C:\xampp\php\PEAR" 

당신은 당신에게 젠드를 추가해야 프레임 워크 라이브러리 경로은 다음과 같습니다. php.ini :

; Windows: "\path1;\path2" 
include_path=".;C:\xampp\php\PEAR;C:\Zend\ZendServer\share\ZendFramework\library" 

지금 당신은 여기에서 명령 줄에서 zftool을 실행할 수 있습니다 자세한 내용은

C:\Zend\ZendServer\share\ZendFramework\bin>zf create Project quickstart 

: http://framework.zend.com/manual/1.12/en/learning.quickstart.create-project.html