I have a controller in CakePHP 2.2 application.
I use PhpStorm 4.0.1 as IDE.
In MyController.php file I declare this:
/**
* @property MyUtilComponent $MyUtil
*/
-
Inside my controller, when I write
$this->I can select “MyUtilComponent” from drop down list.
-
But when I write
$this->MyUtilComponent->no function name option comes to select.
-
When I write
$this->MyUtil->addThis();and then click toaddThisword and “Go to declaration”, then PhpStorm goes to method’s declaration successfully.
What should I do more to get function names autocompletion ?
Note: The behaviour is same for the core components.
Update your PHPStorm. Version 5.0.4 is currently released and works the way you want it.