Categories
PHP

Ubuntu, Zend Framework and Netbeans – Getting Started

Installation of Zend Framework is no pain in Ubuntu. They have packages for that. “zend-framework-bin” contains ZF command line tools and “libzend-framework-php” contains the Zend Library (Minimal one – I guess!). In Synaptic package manager, you will also find a transitional package – “zend-framework” and extra libraries with “libzend-framework-zendx-php” 🙂

I installed “zend-framework-bin” which also installed “libzend-framework-php” for me:

I was now ready to get started with ZF. Netbeans for PHP has built in support for Zend Framework. So I gave it a try. But I noticed, to use ZF 1.10 and over, you need to register the Netbeans Provider by clicking a button.

Tools > Options > PHP > Zend > Click “Register Provider”

In my case, I was getting error messages.

include_once(): Failed opening ‘NetBeansCommandsProvider.php’ for inclusion (include_path=’/usr/share/php/libzend-framework-php::/usr/share/php/libzend-framework-php’) in /usr/share/php/libzend-framework-php/Zend/Loader.php on line 146

After browsing the Internet for a while, I managed to find a fix.

Copy “< NetbeansDirectory >/php/zend/NetBeansCommandsProvider.php” to “/usr/share/php/libzend-framework-php/Zend”.
Restart the IDE and try to register it again. It worked for me 🙂

Now you can run the Zend commands just by right clicking on the project in Netbeans 🙂

One reply on “Ubuntu, Zend Framework and Netbeans – Getting Started”

Comments are closed.