Zend_Tool integration in NetBeans
Zend_Tool is a great tool in the composition of the Zend Framework. On the Internet write that it is still not as perfect as these tools have competing frameworks, but I think something is better than nothing. Utility is a file zf.sh in Linux or zf.bat in Windows. For its operation it is necessary that the path to the PHP interpreter has been specified in the system variable PATH. For convenience, I indicate the path to the utility: then it can be called from anywhere.
The command-line interface is a good thing — as the saying goes, feel the power at the fingertips. But no less handy to have the same functionality in your favorite IDE'Nike. By the way, it is implemented in Zend Studio — hungry and not very free yet powerful development environment. And for fans of NetBeans, the developers offer the ability to integrate command-line utility in the IDE. When I tried to activate, it was not obvious, although quite simple, had some time of googling and experimenting.
So, what need to all worked (Windows 7 in my case):
1. Specify in system variable PATH the path to php.exe and zf.bat. The latter is specified only for the convenience of working from the command line, as for the IDE we then specify the full path to the file.
2. In home folder run 2 commands at the command prompt:
the
The first command creates the folder
3. To edit in a text editor .zf.ini. There should be 2 lines:
The first line is clear, the recording format as in system variable PATH string are separated by semicolons. Necessarily need to specify a path for the Zend library, and it is important that the way was shown one level higher, i.e. ended in '\library'.
The second line is the provider class commands, it comes with NetBeans'ohms and is located in
4. Now you have to launch NetBeans and open the preferences (menu Tool/Options).
Add in a global path for includes the path to the Zend library.

Specify the path to the utility zf.bat and click "Register Provider".

Now if you create a new project based on Zend Framework, using the menu of the NetBeans "New Project...", the utility zf will be used and you will receive a basic structure of a typical project with presets and two controllers.
In order to run Zend_Tool, click on the project name in the Projects window, right-click and select "Zend/Run command..." and get a list of commands.

To understand the above dialogue and just describe it makes no sense. If you run any command, then the results are displayed in the Output window.

Well that's all, now you can enjoy some convenience.
PS a Few links on the subject Zend_Tool:
http://framework.zend.com/manual/en/zend.tool.project.html
http://www.kilinjal.com/blog/how-configure-zend-tool-netbeans
http://netbeans.org/kb/docs/php/zend-framework-screencast.html
http://blog.stfalcon.com/2010/07/podderzhka-zend-framework-v-netbeans-69/
http://devzone.zend.com/article/3811-Using-Zend_Tool-to-start-up-your-ZF-Project
Article based on information from habrahabr.ru
The command-line interface is a good thing — as the saying goes, feel the power at the fingertips. But no less handy to have the same functionality in your favorite IDE'Nike. By the way, it is implemented in Zend Studio — hungry and not very free yet powerful development environment. And for fans of NetBeans, the developers offer the ability to integrate command-line utility in the IDE. When I tried to activate, it was not obvious, although quite simple, had some time of googling and experimenting.
So, what need to all worked (Windows 7 in my case):
1. Specify in system variable PATH the path to php.exe and zf.bat. The latter is specified only for the convenience of working from the command line, as for the IDE we then specify the full path to the file.
2. In home folder run 2 commands at the command prompt:
the
zf --setup storage-directory
zf --setup config-file
The first command creates the folder
.zf
in your home folder of the current user (C:\Users\<ProfileName>
). The second creates in the home folder of the user the file .zf.ini
(C:\Users\<ProfileName>\.zf.ini
).3. To edit in a text editor .zf.ini. There should be 2 lines:
php.includepath = "D:\xampp\lib\zf\library;.;"
basicloader.classes.0 = "NetBeansCommandsProvider"
The first line is clear, the recording format as in system variable PATH string are separated by semicolons. Necessarily need to specify a path for the Zend library, and it is important that the way was shown one level higher, i.e. ended in '\library'.
The second line is the provider class commands, it comes with NetBeans'ohms and is located in
C:\Program Files\NetBeans 7.0\php\zend\NetBeansCommandsProvider.php
. I copied it into the folder D:\xampp\lib\zf\library
for convenience when specifying the path to the original location in php.includepath
utility zf worked in NetBeans and not working in the command line.4. Now you have to launch NetBeans and open the preferences (menu Tool/Options).
Add in a global path for includes the path to the Zend library.

Specify the path to the utility zf.bat and click "Register Provider".

Now if you create a new project based on Zend Framework, using the menu of the NetBeans "New Project...", the utility zf will be used and you will receive a basic structure of a typical project with presets and two controllers.
In order to run Zend_Tool, click on the project name in the Projects window, right-click and select "Zend/Run command..." and get a list of commands.


To understand the above dialogue and just describe it makes no sense. If you run any command, then the results are displayed in the Output window.

Well that's all, now you can enjoy some convenience.
PS a Few links on the subject Zend_Tool:
http://framework.zend.com/manual/en/zend.tool.project.html
http://www.kilinjal.com/blog/how-configure-zend-tool-netbeans
http://netbeans.org/kb/docs/php/zend-framework-screencast.html
http://blog.stfalcon.com/2010/07/podderzhka-zend-framework-v-netbeans-69/
http://devzone.zend.com/article/3811-Using-Zend_Tool-to-start-up-your-ZF-Project