Problem Using Zend Framework on NetBeans

I am learning Zend Framework, I want to use NetBeans to run, but when I try to do this in NB: Tools β†’ Options β†’ PHP β†’ Zend β†’ Click on "Register Provider", the following error will appear in the output window:

PHP Warning:  include_once(NetBeansCommandsProvider.php): failed to open stream: No such file or directory in /usr/share/php/libzend-framework-php/Zend/Loader.php on line 146
PHP Warning:  include_once(): Failed opening 'NetBeansCommandsProvider.php' for inclusion (include_path='/usr/share/php/libzend-framework-php:/usr/share/php/libzend-framework-php:.:/usr/share/php:/usr/share/pear') in /usr/share/php/libzend-framework-php/Zend/Loader.php on line 146

What can I do to solve this problem?

+3
source share
3 answers

I could take another step by adding the correct path for NetBeansCommandsProvider.php . Just replace the contents of .zf.ini with:

php.include_path = "/usr/share/php/libzend-framework-php:.:/usr/share/php:/usr/share/pear:/home/username/.netbeans/6.9/zend/"

and replace the username with your username.

+2
source
vitex@HuP:~$ export  ZEND_TOOL_INCLUDE_PATH_PREPEND=/usr/local/netbeans-7.0/php/zend/
vitex@HuP:~$ zf enable config.provider NetBeansCommandsProvider
Provider/Manifest 'NetBeansCommandsProvider' was enabled for usage with Zend Tool.
+2
source

Zend Framework 1.10.5+, .zf.ini .

php.includepath to php.include_path

, zf

+1

Source: https://habr.com/ru/post/1765183/


All Articles