Screencast about NetBeans PHP IDE and WordPress

<script type="text/javascript" src="http://www.netbeans.tv/js/swfobject.js"></script> <script type="text/javascript"> </script>

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.

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 05:08 AM 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 06:34 AM CEST #

Amazing Video, I think Roman would love it too!

Posted by Varun on August 20, 2008 at 10:20 AM 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 03: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 04: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 02: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 02: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 04: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 06:59 AM 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 04: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 02:54 AM CEST #

Florian,

thanks for this. You saved me time.

Regards,
Petr

Posted by Petr on August 22, 2008 at 07:51 AM 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 12: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 09:24 AM 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 01: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 07:43 AM 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 02: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 09:54 AM 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 09:56 AM 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 09:51 AM CEST #

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

Posted by Tiffany Cuff Links on November 13, 2009 at 07:27 PM 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