Yii 1.1: Yii code completion and calltips in Komodo Edit


My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:

  1. Create your webapplication.
  2. Start Komodo Edit.
  3. Create new project.
  4. Open Project Properties and Settings (Project → Properties).
  5. In dialog that appears choose Directory and File Filters and specify your application folder (e.g. WebRoot/testdrive).
  6. In the same dialog choose Languages->PHP and add the path to your yii/framework folder by clicking add button. And that's it. Now you can enjoy code completion and calltips for Yii classes, methods/functions.

But I must give you two remarks:

  1. It takes time to parse all the Yii files and it may seem not to work at first. Be patient.
  2. Unless you remove yiilite.php from your yii/framework folder in calltips you will see only function name with the list of its parameters. But if you do remove yiilite.php you'll be able to see much more information about the function. Of course you must do it before step 6 above.

Hope my little article will be of some use for you.

Total 1 comment

#8120 report it
mrkmg at 2012/05/11 01:43pm
Almost perfect

The only issue I run into is when you use active record, the resulting models have no tool tips.

Leave a comment

Please to leave your comment.

Write new article
  • Written by: viter
  • Updated by: wei
  • Category: Tips
  • Yii Version: 1.1
  • Votes: +6 / -1
  • Viewed: 12,254 times
  • Created on: Jan 13, 2011
  • Last updated: Jan 18, 2011
  • Tags: Komodo Edit