phpstorm6 yii code complete issue
i enable plugin "Framework MVC Structute Support" and install YiiStorm plugin from repo, i do the same config as this url
http://www.yiiframework.com/wiki/92/configuring-phpstorm-ide-for-yii
but i find there still some classes can not be auto completed, such as "CDataProvider", "IDataProvider"
CHtml, CJSON, Yii, etc auto completed fine.
how can i do?
thanks for your great work.
here is the steps to config for yii app
Notes on Configuring PhpStorm Mac OS X for Yii
In PhpStorm for Mac OS X, there are some differences:
- Exclude
yiilite.php
from index:-
PhpStorm → Preferences → [IDE Settings] File Types
. - Append
yiilite.php
toIgnore files and folders
field.
-
- Exclude not used directories, specify resources.
-
PhpStorm → Preferences → [Project Settings] Directories
. - Mark
framework/cli/views
,protected/runtime
andassets
asexcluded
. - Mark website root as
resource root
.
-
- Specify path to your PHP.
- Set the Interpreter path. E.g.
/Applications/MAMP/bin/php/php5.3.6/bin
-
PhpStorm → Preferences → [Project Settings] PHP
.
- Set the Interpreter path. E.g.
- If your project uses common Yii framework folder you need to include it.
-
PhpStorm → Preferences → [Project Settings] PHP → Add
. - Specify a path to
framework
directory.
-
- If you are writing unit tests you can include PHPUnit to get code completion:
-
PhpStorm → Preferences → [Project Settings] PHP → Add
. - Specify a path to PHPUnit.
-
Please sign in to leave a comment.