Netbeans 8.2 autocomplete doesn't work on joomla 3.8.
With joomla 3.7 or lower, it's works fine.
Any one got the same issue
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-09-20 14:23:30 |
Closed_By | ⇒ | mbabker |
@mbabker The subGenerator comes with Joomla core is not working. I made a PR #17925 to fix it but the class name is still wrong (all class name are in lower case) as explained in the PR
I had to modify some code to get correct result. So if someone needs this option, get this zip file, unzip it and save it to the root folder of your Joomla installation and it will be OK
stubs.zip
Awesome
I'm glad it helps :)
The zip file also worked in PHPStorm - BUT - getParams is still not getting recognized ??
$app = JFactory::getApplication();
// Load the parameters.
$params = $app->getParams();
The getParams method only exists on the site application class. Since JFactory::getApplication()
has a docblock that returns the base CMS application class, it won't exist in the autocomplete stuff unless you put an inline docblock in your code to force it to resolve.
/** @var JApplicationSite|\Joomla\CMS\Application\SiteApplication $app */
$app = JFactory::getApplication();
$params = $app->getParams();
Ok - thank you !
There are two options to help with IDE resolution. As previously announced, the core libraries were namespaced and the old class names do not exist as real classes anymore, but are still accessible through aliasing. The below scripts can be used to generate files to help your IDE correctly resolve the old class names.