Programming CakePHP Apps with Komodo IDE

Posted by Matt on Wed, Feb 25 2009

I suck at screencasts; I know this. If I keep doing them, I'm bound to get better, right? Is it possible to get worse at something the more you do it? Anyway, I made a quick screencast showing off some CakePHP features with Komodo IDE. Leave a comment with your favorite CakePHP related IDE trick.

Screencast

Links and Snippets

The CakePHP Extension

http://community.activestate.com/node/2794

The bake script

Make sure to put %p in the "Start in" field. This tells Komodo to cd to the directory of the active project first. For this to work your project file needs to be in /app.
bake

The bake script

In addition to adding %p like above, you also need to add %b to the command. This will take the current file name, less the extension, and pass it as a parameter.
cake

Posted in CakePHP

18 Comments

Jordan said on Feb 25, 2009
Constructive criticism: Maybe try using something soft to cover the mic, or buy a pop filter.

In Netbeans, to get code completion for custom helpers you can create something like:





Then include that in the code completion libraries. I'm sure it would work the same for Komodo IDE.
Credits to Matthew Campbell in a comment:
http://bakery.cakephp.org/articles/view/model-based-code-insight-and-completion-in-netbeans
Matt said on Feb 26, 2009
Hey Jordon, Yea my mic kind of sucks. It's a $10 one from like 7 years ago. I've been thinking about upgrading for awhile, but haven't gotten around to it.
Jordan said on Feb 25, 2009
Hmm.. code tag didn't show up in the last comment..
<?php
exit();
$custom = new CustomHelper();
?>
Matt said on Feb 26, 2009
I used to use the same trick for including the core helpers, but dropped it once the extension came out. You're right though, that would probably work for the custom helpers. Thanks.
Jeremy said on Feb 26, 2009
very interesting, I'm gonna give komodo edit a try after seeing this, I've been wanting to start using an ide for a while, but being a mac user, I've gotten so accustomed to textmate, it's a hard habit to break, textmate is just so good, but I like the features like the autocompletion and call tips, so thanks, I'll give it a shot.
JeffG said on Feb 26, 2009
Thanks for posting this! I've posted about it over at my own blog here. I'm the author of the Cake extension for Komodo, and in answer to the other comments, I have been intending to look into customer helper support ( I just need to find some time somewhere to do this ). I'm glad you're finding the extension useful so far!
David said on Feb 26, 2009
Hey thanks, tried Komodo a will ago and dropped it because it was the same struggle as Zend Studio for Eclipse for code completion (aka teknik described by Jordan).

After your screencast and link to Jeff's extension, I think I'm gonna give it a second try ^^
JeffG said on Feb 26, 2009
If people try out the extension and run into issues are have questions, feel free to comment on the extension's home page or drop me an email at jeffg at activestate dot com.
Terr said on Feb 28, 2009
Awesome! Thanks for the heads up about that CakePHP extension. Ever since I started to use Cake I've been looking for something that could be taught Cake's dynamic class loading.
AF said on Mar 10, 2009
I'm Php-dev and am using Komodo Edit for about a year now...
For Php-programming it is simply the best editor i've encountered til now
RaiulBaztepo said on Mar 28, 2009
Hello!
Very Interesting post! Thank you for such interesting resource!
PS: Sorry for my bad english, I'v just started to learn this language ;)
See you!
Your, Raiul Baztepo
Brendon Kozlowski said on Apr 30, 2009
Is there any way that you've come across to rearrange the default alpha-sort for files/directories in the project pane? I really don't like having files sorted in the same hierarchy with folders, it throws me for a loop.
Matt said on Apr 30, 2009
If you click the top where it says "name" it actually has three states. One of them sorts files then folders. Not sure if that really helps you though. You can also click the little boxy thing and add other columns and then sort by them.
Brendon Kozlowski said on May 01, 2009
Perfect, exactly what I was looking for. Thanks Matt.
myles said on May 12, 2009
You could also use PHP Eclipse
It supports code completion for CakePHP

Refer here for the links on where to download
http://myleskadusale.wordpress.com/2009/04/30/my-cakephp-developers-tools/

Refer here on how to setup .ctp files
http://myleskadusale.wordpress.com/2009/04/30/adding-syntax-highlighting-for-ctp-files-in-phpeclipse/
Cakephp development said on Feb 04, 2010
Thanks for the tips what i looked for..
keisimone said on May 24, 2010
Hi

i did a simple batch file inside the app folder before i read this post. it worked in the sense that i can open cake bake at app folder.

but now i tried your way, and i double clicked on your command i get php not recognised instead.

please help.

thanks.

i was already using komodo before i started on cake. and i really loved it. now i am starting on cake as well and i saw your post i am ecstatic.

Please let me know soon. thanks.

using cake 1.3 and xampp 1.7.3 on windows 7 machine.
keisimone said on May 24, 2010
my bad. i only needed to restart my komodo ide.

way cool. like cake :)