Zend Framework support

Hi all, today I would like to inform that we just added initial support for Zend framework. So, let's have a look at what is supported right now.

Of course, first of all it is a good idea to specify a path to Zend command line tool:

Zend framework Options

Next, we want to create a new project with Zend framework (please notice that the Zend framework files are currently not copied to the project, this is on our TODO list) :

Zend framework in New Project Wizard

The generated project can look like this:

PHP project with Zend framework

Next, we would like to invoke some Zend commands, of course:

Invoke Zend command

So, let's add an action to our Index controller:

Add Zend Action

We can review the result in the Output window - it's done!

Output window with new Zend action

Also, one can navigate from action to view and vice versa, similarly as for Symfony framework (just right click in a view or in an action and choose Navigate > Go to View/Action). 

That's all for today, as always, please test it and report all the issues or enhancements you find in NetBeans IssueZilla (component php, subcomponent Zend).

Comments:

Nice! I bet that after NetBeans will have ZF support a lot of EclipsePDT users will switch to NetBeans. I will be one of them. Thanks in advance!

Posted by Endijs Lisovskis on January 06, 2010 at 07:59 AM CET #

Great! I've waited for this for a looong time :-)

Posted by Pawka on January 06, 2010 at 07:59 AM CET #

I am testing this now but getting the following error

An Error Has Occurred
Provider 'nb-commands2 is not a valid provider

And of course rest of the command list gets messed up.

Posted by Bill YILDIRIM on January 06, 2010 at 08:53 AM CET #

Ignore my comment. Will file a bug.

Posted by Bill YILDIRIM on January 06, 2010 at 08:57 AM CET #

To Bill YILDIRIM:
Sorry, right now no idea what could be wrong. You can follow/update this issue:
https://netbeans.org/bugzilla/show_bug.cgi?id=179255

Thanks,
Tomas

Posted by Tomas Mysik on January 06, 2010 at 08:59 AM CET #

Only for linux?

Posted by snapshot on January 06, 2010 at 09:19 AM CET #

Very nice! Big step forward in making NetBeans become adult for PHP developers.

I'm facing same issue as above, added my situation to the comments.

My remark:
It is very nice to add support for the zend tool, but myself I hardly use it.
What I would love to see from ZF support is code completion in Views and Action Controllers.

Short example:
class IndexController extends Zend_Controller_Action
{
public function indexAction()
{
$this->view->foo = 'Foo!';
}
}

views/scripts/index.phtml:
<?php echo $this-> [ctrl+enter]
No suggestions. While it would be nice to see foo and all the view helpers show up.

Shall I file an issue for this?

Posted by Maghiel Dijksman on January 06, 2010 at 09:57 AM CET #

To Maghiel Dijksman:
This is planned for NB 6.9 we hope.

Posted by Tomas Mysik on January 06, 2010 at 10:15 AM CET #

Thanks Tomas, can't wait! (as well as for zend debugger support :))

Posted by Maghiel Dijksman on January 06, 2010 at 10:26 AM CET #

Great stuff! Netbeans should now be able to steal A LOT (!!) of users from the ugly, expensive, bloated and buggy Zend Studio 6+.

Posted by Espen Liland on January 06, 2010 at 12:16 PM CET #

How about support for CodeIgniter?

Posted by Guillermo on January 06, 2010 at 05:28 PM CET #

Similar support for Nette Framework would be nice :) Presenters and template generating (from user defined templates), code completion in templates, maybe URL info from routes definition for every presenter :)

Posted by Ondrej Mirtes on January 06, 2010 at 06:20 PM CET #

Great work. more php developers will say goodbye to eclipse and zend studio pretty soon.

Hopefully cakephp support will be next in the list.

Posted by DavidTan on January 06, 2010 at 09:14 PM CET #

nice work!

Posted by edho on January 06, 2010 at 10:42 PM CET #

I'll be one of those who will switch from eclispe PDT to NetBeans :)

Also, I've never noticed that NetBeans also have Symfony support :)

Posted by aur1mas on January 07, 2010 at 01:36 AM CET #

i am a happy switcher from Zend Studio...
NetBeans rocks! i'll wait to the stable release to check the zend framework new features, but right now i am using netbeans+zf and just symply works great!

i love xdebug support, unit tests and selenium

PD: Zend! i want my money back! hehehe :D

Posted by Dani on January 07, 2010 at 04:43 AM CET #

That's a great news for ZF comunity, and i'm enjoing a lot the Netbeans 6.8 PHP support.
Almost dropping Eclipse :D

Posted by Arian Maykon de Araújo Diógenes (Dead_Thinker) on January 07, 2010 at 05:22 AM CET #

Man !!!
this is great !
I was waiting for this...
I hope it'll be available as a plugin soon !!

Posted by dGo on January 08, 2010 at 03:34 AM CET #

This
is
AWESOME!!!!!!!!

Posted by alex on January 08, 2010 at 03:50 AM CET #

WOHOOOOOOOOOOOOOOOOO! Finally, ZF support is rollin'. THX!

Posted by meme on January 08, 2010 at 09:23 AM CET #

As Ondrej Mirtes has said, Nette Framework support would be fantastic!

Posted by oo on January 09, 2010 at 02:11 AM CET #

This is great!. I've been working with Zend Framework for 8 months using Netbeans, just adding it to my global netbeans's PHP include path and it just worked ok. But i've tried out to work with Symfony in Netbeans 6.8, and that just Rocks!!. If the Zend Framework support is going to be like the Symfony support, there are comming great times for Netbeans.... Congratulations to Netbeans Developer Comunity!!!

PD: Excuse me for my English

Posted by DavidZ on January 09, 2010 at 07:31 AM CET #

I'm using another php framework named Yii (http://www.yiiframework.com) and I think that ZF plugin can be used as base to develop Yii plugin for NetBeans. Where can I download sources of existing ZendFramework plugin?

Thank you.

Posted by Dario on January 11, 2010 at 07:23 AM CET #

TO Dario:
See http://wiki.netbeans.org/WorkingWithNetBeansSources, the name of the module is php.zend (you will need implementation dependency on php.api.phpmodule module).

HTH,
Tomas

Posted by Tomas Mysik on January 11, 2010 at 07:36 AM CET #

Great IDE for PHP development. As symphony is supported, I presume that is just of matter of a few adjustments to also support cakePHP - another MVC framework for PHP.

Keep up the good work!

Posted by nadrian on January 11, 2010 at 02:04 PM CET #

can make the framework support as a plugin of netbeans?

Posted by nunclelei nunclelei on January 13, 2010 at 08:54 AM CET #

To nunclelei nunclelei:
It is NB plugin but you must use the development version of NetBeans (follow the link in the article).

Posted by Tomas Mysik on January 13, 2010 at 01:44 PM CET #

bertram.netbeans.org unreachable

Posted by Nicolas on January 14, 2010 at 04:05 PM CET #

Great news. One question: how can we add ZF support for existing projects?

Posted by dream3r on January 18, 2010 at 03:09 PM CET #

hi, why not like plugin?, i mean it is more interesting like a plugin.

Posted by luis molina on January 21, 2010 at 04:58 AM CET #

I've got a problem with that /\* @var $media Book \*/ example from this post:
http://blogs.sun.com/netbeansphp/entry/defining_variable_type_in_a

Some of my files only have working autocompletion if I write the comment like
/\*\* @var Book $media \*/

Others only work if i write the comment like
/\* @var $media Book \*/

Posted by thinsoldier on January 22, 2010 at 03:12 PM CET #

There is no need to force it i have always the antialias active on linux

Posted by Marco on January 25, 2010 at 02:20 AM CET #

I would like to rememebr to netbeans core developers the issue about subversion support in the ide. The issue about the ssh password always prompted to the user

Posted by Marco on January 25, 2010 at 02:22 AM CET #

As a satisfied Netbeans user for PHP development, I am very please to see that support for ZF is being added. I have wanted to get into ZF but didn't want to learn a new IDE.

Thanks!

Posted by Kurt Krueckeberg on January 28, 2010 at 07:07 PM CET #

Great work, but I have a problem.
Creating a new project works fine, but when I go run a zend command, there is a message saying "<There is no command available (perhaps error?)>"
in the Matching Tasks field.
I can run zf commands in command prompt perfectly fine.
What am I missing?

Posted by rodp on February 04, 2010 at 09:51 PM CET #

I can't find the tab in the PHP options to configure Zend Framework.

I have NetBeans IDE 6.8 (Build 200912091457).

How can i solve this?

Posted by Filipe Costa on February 11, 2010 at 11:57 AM CET #

What is the current state of smarty support? It looks like the community driven plugin hasnt been updated in some time.

Posted by cdi3d on February 24, 2010 at 08:19 AM CET #

Hi,

Using 6.9m1 with a recently created Zend Framework project i tried to create a test using the "Tools/Create PHPUnit Tests" option for the generated IndexController.

In the output window i've got this

Fatal error: Class 'Zend_Controller_Action' not found in /Users/patchinko/Sites/prueba/application/controllers/IndexController.php on line 3

Call Stack:
0.0016 55832 1. {main}() /usr/local/bin/phpunit:0
0.2069 4180112 2. PHPUnit_TextUI_Command::main() /usr/local/bin/phpunit:54
0.2069 4180824 3. PHPUnit_TextUI_Command->run() /usr/local/PEAR/PHPUnit/TextUI/Command.php:146
0.2069 4183432 4. PHPUnit_TextUI_Command->handleArguments() /usr/local/PEAR/PHPUnit/TextUI/Command.php:155
0.2110 4274472 5. ReflectionClass->newInstanceArgs() /usr/local/PEAR/PHPUnit/TextUI/Command.php:850
0.2110 4275008 6. PHPUnit_Util_Skeleton_Test->__construct() /usr/local/PEAR/PHPUnit/Util/Skeleton/Test.php:0
0.2112 4279632 7. include_once('/Users/patchinko/Sites/prueba/application/controllers/IndexController.php') /usr/local/PEAR/PHPUnit/Util/Skeleton/Test.php:127

I had to add the path to the zf library directory to my php.ini and prepend

require_once 'Zend/Controller/Action.php'

to my IndexController file to get it right.

Once the test created you could delete the require_once statement cause testing a zf app usually requires a context (resources) so in your tests bootstrap file you could enable the Autoload feature.

And i would love to have the chance of passing parametters to phpunit script like --include-path and avoid editing the php.ini

I think this should be a project not a global setting, in fact passing "PHP Include Path" from project settings could be a workaround.

Thx
Francisco Ortiz Peñaloza

PD: Sorry about my english :)

Posted by Francisco Ortiz Peñaloza on February 25, 2010 at 10:08 AM CET #

Hi .

Is there a way to say to netbeans that an already php netbeans project created with netbeans 6.8 is using Zend Framework, to be able to recognize the ZF Tool ??

Posted by Federico Arriola on March 04, 2010 at 01:52 PM CET #

ongrats nice work.good for all users.i wish to say something about a PHP frame work called as NOLOH NOLOH specialties are, it can be connected to any database with ease. NOLOH is very safe and dependable. The NOLOH objects can be extended very easily. So it is completely flexible. NOLOH supports automatic error-handling. The syntax is easy to understand. Any PHP programmers can easily work with the NOLOH syntax. It contains fully customizable controls from basic to complex ones. It provides Automatic State Management. It manages all applications and user view state for the developer automatically. It also maintains a smooth communication between client and server. so just check this out....

Posted by nihdalas on March 08, 2010 at 03:52 AM CET #

Hey, I've just run the official ZF quickstart tutorial, trying to get the basis of a screencast.

I used MySQL (in the XAMPP stack) instead of their suggested sqlite server. I handcoded the alternate application.ini changes, following some instructions on the ZF forums (http://www.zfforums.com/zend-framework-general-discussions-1/general-q-zend-framework-2/zf-quickstart-mysql-2796.html), instead of passing it all as parameters in the "configure db-adapter" command. Also, I did not like the look of the sqlite.php script, so I used NB db features to create the databases, tables, and indexes.

What I'd like to know is if any of you out there who used NB and MySQL to run this tutorial configured the db adapter using only the configure db-adapter command + parameters? And did any of you use the sqlite.php script or a variant of it? I know at least one other NB person ran this tutorial from the comments!

Posted by Jeffrey Rubinoff on March 13, 2010 at 10:22 AM CET #

this is what i'm looking for. Integration with Zend Framework is one big step for php netbeans. Keep up good work.

Posted by deerawan on March 14, 2010 at 10:55 PM CET #

Will ZF be the only "officially" supported framework? I heard or read somewhere that CakePHP was also possibly to be supported? I am also kinda interested in Yii.

Keep at it please. We LOVE your work!

Posted by jmcbade on May 05, 2010 at 01:51 AM CEST #

I have experimented with Netbeans off and on over the years and there was always something making it unusable for me. As of 6.9, I feel like it has become everything I needed it to be and it is so easy to use. I have fallen in love with Netbeans and I don't see myself leaving it for another IDE whether I am working in PHP or Ruby.

Posted by Benjamin on October 15, 2010 at 08:23 AM CEST #

The view support is not working for me :(

Posted by Chris on November 10, 2010 at 01:21 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today