Best IDE for debugging and Code Completion in CakePHP - php

I am new to CakePHP framework. Does anybody have any experience with a free IDE for Uuntu which can perform code completion and most importantly ability to debug CakePHP code?
Any responses would be greatly appreciated.
Thanks

I would use Netbeans, and I mean, I do use Netbeans. It can intelligently work across inherited classes so works very well against CakePHP.
http://netbeans.org/
Updated:
In addition, now netbeans IDE has got a plugin for CakePHP

Sublime Text 3 is the best one in my opinion. I have used PhpStorm, Komodo, Aptana Studio 3, Notepad++ and others. All are good IDEs. But Sublime Text is giving me auto complete for CakePHP and other features too. Try it out. You will like it.

See http://mark-story.com/posts/view/code-completion-for-cakephp-in-eclipse
Netbeans works well for PHP in general, you will get full code completion in Controllers, but couldn't get proper completion in Views to work.
Same in Eclipse, however no code formatting for PHP is pretty n00by.
Debugging PHP generally sucks, I mostly use $this-log().

I suggest to try Codelobster PHP Edition
It has free debugger and special plug-in for CakePHP autocompletion.

Related

Dreamviewer & Zend Framework project: Wrong path mapping

I tried all the day to set up a Zend Framework project in Dreamweaver CS5.5. Now, after a few hours spending on google and the CS5.5 doc, i am still not able to debug a Zend Framework project in Dreamweaver:
Let's say, i have a module called "admin" in /application/modules/admin. If i try the Live View feature, Live Code, or the dynamic files discover, it fails at all.
If I try to debug the IndexController of the AdminModule, Dreamweaver always tries to render the page http://foo.bar/application/modules/admin/controllers/IndexController.php, insteadof http://foo.bar/admin[/index/index]
Is there any way to get those features working with Dreamweaver CS5.5?
Also, the include path does not work. The /public/index.php includes something like require_once 'Zend/Application.php';. Where does Dreamweaver search? He tells me that he can not find the file http://foo.bar/Zend/Application.php. Omg, srsly?
I hope there are some Dreamweaver PHP developers out there which can help me.
Btw, I am using Zend Studio at the moment and wanted to get a "quick" look into the new CS5.5 features :/
Update 16.05.2012
Little update from me. I'm currently Using PHPStorm from JetBrains. It is the best IDE I ever had. (Ecpilse/Aptana/Zend Studio/PHPDesigner). Autocomplete for nearly everything, huge plugin repository and much nice features like LESS Support, NodeJS Support, PHPUnit integration or an integrated Git Client. Give it a try. It's free for open source projects.
Dreamweaver can technically work with anything, but it's really designed to work with procedural php.
I would recommend the eclipse software with the pdt plugin or net beans. WAY better for supporting a zend framework project imo.
I'm not bagging on dreamweaver, it's a nice tool (especially for html/css), but for OO PHP programming, it's really not designed for it.

My first CodeIgniter program: where should I write it?

I just installed CodeIgniter, and it gave me the source code.
From what I understand, I should move the source code to my local server folder.
I did the configuration; but now what should I do next? What should I use to write code -- DreamWeaver, for example, like any other PHP file? Is there any GUI program dedicated for CodeIgniter?
The very first thing you should do is read the documentation. I do not use it myself, but I know for a matter of fact that CodeIgniter has some documentation. And there are heaps of introductions and getting started materials. (It also explains how and where to unpack it.)
http://codeigniter.com/tutorials/watch/intro/
http://codeigniter.com/user_guide/overview/getting_started.html
http://www.google.com/search?q=codeigniter+introduction
Btw, there are no clicky-coloury apps that do the coding for you. You will have to resort to an editor; and yes Dreamweaver will do. And then learn the API.
Codeigniter has excellent documentation, wiki and forum. For coding you can try Notepad++ (http://notepad-plus-plus.org/) which is free, light, colors syntax, have plugins,... and you can even put it on the usb.
After that you can try one of many IDE like Eclipse or Netbeans.
textmate has a bundle for CI, i do alot of CI development and I use the following
maamp for localhost
http://www.mamp.info/en/index.html
textmate for php html / css dev
http://macromates.com/
navicat for mysql managment
http://navicat.com/

Need assistance finding the perfect PHP IDE for Ubuntu

I'm trying to build an application in PHP using my Ubuntu laptop. I'm having a hard time, however, finding an IDE that fits my needs. My ideal IDE would have the following features:
Code folding
Easy code snippet creation that is assignable to a shortcut key
Code organization
Unit Testing
Debugger
Netbeans fits most of these requirements except that the ability to create snippets is complex. One must create a module file and then screw around with some XML and do the hokey poky to get a super simple snippet installed. I tried creating a macro in NetBeans, but it screws up the javadoc and I have not figured out a way to tell it to just paste in what I type for the duration of the macro rather than using all of the human assistance features. So what I get is a bunch of jacked up looking code with jacked up phpdoc.
gPHPEdit is more of what I'm looking for as far as snippet support, but it sorely lacks all of the other features that NetBeans does so well.
Any ideas on a great PHP IDE. Since this is a personal project, purchasing an IDE is not an option.
In NetBeans, you can make code templates. These are abbreviations with variable support, what you can complete with a selected key (tab, ctrl+enter etc).
You can find it under Tools -> Options -> Editor -> Code Templates.
I use Aptana which is build on top of eclipse or can be used as an eclipse plugin. It comes with some basic snippets and creating new snippets isn't that hard with eclipse.
I would recommend to start with the 3.0 beta as it has some new features that are quite useful. Apatana has almost everything you need and as it uses eclipse, you will get almost everything that is missing (like SVN or GIT support).

How to use Visual Studio for WordPress development?

Does anyone use Visual Studio to do WordPress development? If so, how do you do it?
Programming for Wordpress is mainly coding css, php, html and js files. If you're asking about using Visual Studio for this scenario, I'm assuming you want a plugin that provides code hints for WordPress development API. Since I don't know anyone, I'm going to give you some other options.
Dreamweaver and CodeLobster come to mind as commercial applications. If you want something in the open source world, I recommend you a normal multi language IDE that supports PHP: the most important thing here is to use one that at least supports some kind of snippet functionality.
That goes from Netbeans to Aptana (which is based on Eclipse) to notepad++ with snippets functionality. The last one is an interesting solution since it's really lightweight but you will need to create your own snippets for Wordpress API functions and hooks.
I had Aptana installed in my machine in the past, but now I'm using gVim with snipmate plugin and some snippets of my own that I create when I realize I'm doing repetitive tasks.
No built-in support for VS, and I guess there won't be, but there are some options like the answer on this thread for Expressions. The other thing I've been looking at recently is WebMatrix - it looks promising in that it supports WordPress.
Did you check out VS.php ?
I've looked in vain for a decent plug-in for VS that would properly handle PHP, and have never been able to find one.
I always end up back with Netbeans.
Textmate :)
Old question, I know. But if I came looking, someone else probably will as well. :)
Couple of videos here about the plug-in
PHP Tools for Visual Studio
A wordpress plugin developer saying how he uses visual studio code with plugins to run his wordpress:
https://deliciousbrains.com/vs-code-wordpress/
He seems like he knows what he's talking about.

suggestions for a html designer for the php eclipse package

I'm using an eclipse installation I downloaded mainly for PHP development. Now I want to add a HTML visual desiger. Any suggestions? I'm an eclipse newbie.
Do you mean a WYSIWYG editor? I've never been a fan of those since most create some pretty ugly code but I found this one for eclipse: http://www.myeclipseide.com/module-htmlpages-display-pid-12.html
I have not tried it yet so I don't know if it will suffice for your needs.

Categories