Friday 30 November 2018

Yii with PHP Storm Auto Complete and Class Recognition



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?



Thanks



EDIT



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.


Answer




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.


No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...