Screencast about NetBeans PHP IDE and WordPress

Posted by Petr Pisl on Aug 20 2008, 09:03:01 AM CEST

I have created my first screencast, on how to set up WordPress as a NetBeans project. I also show how to write a simple plugin for WordPress. The plugin will look through the content of displayed blog entries to replace the word "NetBeans" with a link to the NetBeans.org site.

The content of this screencast is based on Jan's entry Configuring a NetBeans PHP Project for WordPress  and my entry My first WordPress plugin in NetBeans. But you can see more features of NetBeans in the screencast, not only ones specific to PHP. The length of the video is 8 minutes and it's published on NetBeans.TV.

Category: Features | Permalink | Comments [23]

Trackback URL: http://blogs.sun.com/netbeansphp/entry/screancast_about_netbeans_php_ide
Comments:

Nice demonstration. I haven't used WordPress yet...

You didn't make use of the code completion with functions though...
It automatically selects the first parameter for you, but then when you finish typing the first one, hit tab, and you will edit the second :P

Sorry knit picking... :D

Posted by Jacob on August 20, 2008 at 12:08 PM CEST #

Hi Jacob,

thanks. I was a little nervous, so I haven't used all the features, which are offered. I'm glad that you like it.

Thanks,
Petr

Posted by Petr Pisl on August 20, 2008 at 01:34 PM CEST #

Amazing Video, I think Roman would love it too!

Posted by Varun on August 20, 2008 at 05:20 PM CEST #

Netbeans has good starting point for PHP support, but there is some editing things, for which is eclipse PDT better

- code navigation via jumps between to definitions of classes, methods, functions in the code, netbeans has this feature (ALT-B), but it doesn't work in very well
when I have this code

public function routeStartup (Zend_Controller_Request_Abstract $request)
{
AppBaseUrl::setHost($request->getServer("SERVER_NAME"));
}

jumps when I am in the AppBaseUrl or in the setHost doesn't work, in PDT yes

- no class/method function browser for all classes, methods, functions in the project with searching, navigator works only for current file

- IDE is much slower then eclipse pdt

Posted by optik on August 20, 2008 at 10:46 PM CEST #

Nice video.
Next thing I've to try is setting up xdebug for my installation.

And by the way should I file a report in IZ if i've got any proposals for minor improvements?

keep it up!
Flo

Posted by Flo on August 20, 2008 at 11:11 PM CEST #

Hi Optik,

thanks for your comments. The NetBeans support is in beta and yes there are bugs. This is the first version, which has been developed during a few month. Other IDEs were developed for much longer time. I'm just want to say that this is mainly question about resources and time. Every one can help, file a bug, write comments etc.

>jumps when I am in the AppBaseUrl or in the
>setHost doesn't work, in PDT yes

This is a bug and I'm working on this. You can track it or add comments: http://www.netbeans.org/issues/show_bug.cgi?id=143426

>- no class/method function browser for all
>classes, methods, functions in the project with
>searching, navigator works only for current file

You are right, this is missing feature. Unfortunately we hadn't time to do it. You are not only one, who is complaining about this, I will see what I can do after stabilizing current features.

>- IDE is much slower then eclipse pdt

We are aware about this. Beta doesn't contain some my performance fixes, which I did so far mainly in code completion area. I hope that we will be able to improve in others areas and the first version will not suffer any slowness.

Thanks for your comment and I hope that you will try NetBeans after few weeks again and the IDE fits you.

Regards,
Petr

Posted by Petr on August 21, 2008 at 09:03 AM CEST #

Hi Flo,

>Next thing I've to try is setting up xdebug for my
>installation.

What OS do you use?

>And by the way should I file a report in IZ if
> i've got any proposals for minor improvements?

Sure. If you file new improvements, then the issue can be easily tracked. The discussion can be done in issuezilla, which has some advantages and in the end we know, what people want.

Thanks,
Petr

Posted by Petr on August 21, 2008 at 09:26 AM CEST #

Alright, thanks for your response.

I use Windows XP sp2 with xampp. I just figured out how to get xdebug running. I only had to change some commenting in the php.ini, it also said i can only use Zend (I think ZendExtensionManager.dll) OR Xdebug in the ini file. It is now listed in my phpinfo() output and xdebug.remote_enable is on.

Seems like it's working now in NB :)

Greetings Flo

Posted by Flo on August 21, 2008 at 11:24 AM CEST #

Thanks for the screencast. It was REALLY informative.

I learnt quite a few new things, even after having set all this up previously...

Posted by James on August 21, 2008 at 01:59 PM CEST #

Hi Flo,

some people have a problem to set up xdebug on Win and xampp. Could you exactly describe, what you changed in the php.ini and also in which php.ini? I would like to check it with one my colleague, who has exactly the problem, but I haven't had time to install this combination on my machine and solve it.

Thanks,
Petr

Posted by Petr on August 21, 2008 at 11:47 PM CEST #

Hi Petr,

Here's exactly what I've done:
- Windows XP SP2
- XAMPP (basic package) version 1.6.7
- Netbeans 6.5 Beta or nightly build

The xdebug.dll should already exist in the folder xampp/php/ext/ alternatively you can download it or the newest version from the xdebug website.

You'll find the correct php.ini for web stuff in xampp/apache/bin
The other php.ini are for CGI/CLI mode.

Source http://www.apachefriends.org/en/faq-xampp-windows.html#phpini

And this is what I've changed in the php.ini, just commenting and uncommenting some lines which should already be there. Deactivate [Zend] and activate [XDebug] and adapt your paths. Then restart your Apache and it should work in Netbeans with the default settings.

[Zend]
;zend_extension_ts = "C:\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll"
;zend_extension_manager.optimizer_ts = "C:\xampp\php\zendOptimizer\lib\Optimizer"
;zend_optimizer.enable_loader = 0
;zend_optimizer.optimization_level=15
;zend_optimizer.license_path =
; Local Variables:
; tab-width: 4
; End:

[XDebug]
;; Only Zend OR (!) XDebug
zend_extension_ts="C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"

Greetings
Florian

Posted by Flo on August 22, 2008 at 09:54 AM CEST #

Florian,

thanks for this. You saved me time.

Regards,
Petr

Posted by Petr on August 22, 2008 at 02:51 PM CEST #

Hello

Have you got a problem with xampp on mac I install it but mysql don't run Must you install phpmyadmin separetly?

Posted by Baudry on October 01, 2008 at 07:34 PM CEST #

Hi Baudry,

I don't have a mac. Could someone with a mac machine to help?

Thanks,
Petr

Posted by Petr on October 02, 2008 at 04:24 PM CEST #

Cool stuff. Lot of useful information in the 35mins screen cast. I missed how the plug-in to replace text gets called though. Is it that "all" the plug-ins always get called?

Posted by DominoMill on November 24, 2008 at 09:40 PM CET #

Hi DominoMill,

this screencast has only 8:10 minutes :).

The plugin registers the function correctNetBeans is a content filter. It means that wordpress will be call the function for displaying every content.

I hope this help.

Thanks,
Petr

Posted by Petr on November 25, 2008 at 03:43 PM CET #

Whoa!

Nice demo, BTW I am still scratching my head with NetBeans IDE to find out the magical WORD-WRAP option and also messed up setting up X-Debug.

Its disappointing to see that two of the biggest IDE for development ie. Eclipse and Netbeans both are missing WORD-WRAP option?

Now just fire up the good old Notepad and there you have it :) SIMPLE

Posted by Anirudh K Mahant on April 11, 2009 at 09:21 PM CEST #

Hi, everyone.

I suggest also to try free PHP IDE <a href="http://www.codelobster.com/">Codelobster PHP Edition</a> with special WordPress plug-in.

Regards,
Stas.

Posted by Stas on April 13, 2009 at 04:54 PM CEST #

Hi, everyone.

I suggest also to try free PHP IDE Codelobster PHP Edition (http://www.codelobster.com/) with special WordPress plug-in.

Regards,
Stas.

Posted by Stas on April 13, 2009 at 04:56 PM CEST #

Is this a joke or what? Your english (if one can call that english anyway...) is hardly or not understandable. If ya a going make tutorial ya shouda speaka da language ya going to use otherwise your 'tutorials' are only usefull for your self.

Posted by pete on May 07, 2009 at 04:51 PM CEST #

It was a very nice idea! Just wanna say thank you for the information you have shared. Just continue writing this kind of post. I will be your loyal reader. Thanks again.

Posted by links of london on October 31, 2009 at 03:26 AM CET #

this is cool, this is what we want dude......

Posted by Tiffany Cuff Links on November 14, 2009 at 03:27 AM CET #

Thanks for the screencast. It was REALLY informative.

I learnt quite a few new things, even after having set all this up previously... http://www.gifico.com

Posted by louis vuitton on November 19, 2009 at 07:13 AM CET #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed