Sunday, February 5, 2012

Problem running Zend commands inside NetBeans (solved)

When trying to run zf commands inside Netbeans
it didn't work until I did the following:
    1. ​Using cmd I created the .zf.ini file using the script​ "zf --setup fonfig-file"
      1. .zf.ini is in your user directory like in windows: "C:\Users\abdelhady_mohammed"
    1. Then I opened netbeans and from tools>Options>php>Zend, then choosed "Register Provider"
    2. Right click the project Zend>run command and choose "Refresh Commands"
And here we go, every thing is Ok inside Netbeans

Then I tried to run zf commands again on windows command line:
And here comes the bug, zf commands is no longer runnable on windows command line and here is the full bug report on Netbeans site:

Solution:
get the "NetBeansCommandsProvider.php" located in "D:\Boston_Dev_Env\NetBeans\php\zend"
and copy it to the Zend Library folder "D:\Boston_Dev_Env\server\ZendFramework-1.11.7\library"

and every thing will be fine then

Additional reference:
http://www.kilinjal.com/blog/how-configure-zend-tool-netbeans?page=show

No comments:

Post a Comment