Joomla as external library
Hi. I'm trying to do some local development for a Joomla 1.7 component. I added Joomla's includes and libraries directories as externals but its still saying some things aren't found (screenshot attached). Anyone have any suggestions on what to do here?
(Win7, PhpStorm 3.0.3)
Attachment(s):
noexecute.png
Please sign in to leave a comment.
Hi Jason,
I'm not using Joomla myself, but this is what I think may be the reason (based on screenshot and code on it):
Because of the way how $controller is created and the way how JController::getInstance() is implemented and documented, PhpStorm is unable to properly identify what type is that. You need to help PhpStorm a bit by providing typehint via PHPDoc comment block, something like this:
Righ now PhpStorm thinks that $controller is instance of class mixed (as seen on your screenshot). If you put your curson on $controller and invoke "View | Quick Documentation", you will see what PhpStorm thinks about this variable exactly. Now, add PHPDoc comment mentioned above and invoke Quick Documentation again.
Thanks for the detailed response, Andriy. That did the trick!