You are viewing revision #6 of this wiki article.
This is the latest version of this article.
You may want to see the changes made in this revision.
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:
- Create your webapplication.
- Start Komodo Edit.
- Create new project.
- Open Project Properties and Settings(Project → Properties).
- In dialog that appears choose Directory and File Filtersand specify your application folder (e.g. WebRoot/testdrive).
- In the same dialog choose Languages->PHPand add the path to youryii/frameworkfolder 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:
- It takes time to parse all the Yii files and it may seem not to work at first. Be patient.
- Unless you remove yiilite.phpfrom youryii/framework folderin calltips you will see only function name with the list of its parameters. But if you do removeyiilite.phpyou'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.
Almost perfect
The only issue I run into is when you use active record, the resulting models have no tool tips.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.