Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yii with PHP Storm Auto Complete and Class Recognition

Tags:

php

phpstorm

yii

I've just started using the Yii Framework (A fantastic one at that!) and am using PHP Storm 5 with it.

I have separated the testdrive file from the Yii framework and just changed the paths in the index.php file which all works but how do I now get code completion and the IDE to recognise all the yii system classes?

I have googled and read heaps of stuff but it's all so confusing and not explained very well. Can anyone out there give me a few steps to follow?

like image 224
Adam Avatar asked Feb 02 '13 02:02

Adam


1 Answers

I figured it out, pretty easy. All you have to do is go File → Settings → Project settings → PHP → PHP Home → Add. and add the path to your framework folder in yii whereever it is.

like image 173
Adam Avatar answered Oct 15 '22 08:10

Adam