please.
I am working on eclipse with PHP Development Tools (PDT).
and autocomplete feature working perfectly in php code only.
how can i add opencart MVC library (include path) to enjoying with autocomplete feature in opencart code ?
There has been a lot of discussion in the past regarding variation of tools that can be used to autocomplete feature for PHP: http://forum.opencart.com/viewtopic.php?t=11466.
However, here's a fully documented screenshot and steps on how to proceed with PHP Eclipse for Opencart: https://www.eclipse.org/forums/index.php/t/944334/
However, here's a fully documented screenshot and steps on how to proceed with PHP Eclipse for Opencart: https://www.eclipse.org/forums/index.php/t/944334/
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
For autocomplete across the entire library just add the phpdoc @property
eg on top of your controller
/**
* @property ModelCatalogProduct $model_catalog_product
*/
Now whenever you use $this->model_catalog_product->... it will autocomplete the available methods and hint the arguments as well.
You can add all the @properties in the main \Controller or just the onces relevant to the current controller/model/etc file
I do the second option but the first is probably smarter
eg on top of your controller
/**
* @property ModelCatalogProduct $model_catalog_product
*/
Now whenever you use $this->model_catalog_product->... it will autocomplete the available methods and hint the arguments as well.
You can add all the @properties in the main \Controller or just the onces relevant to the current controller/model/etc file
I do the second option but the first is probably smarter
Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+
Thanks!
Who is online
Users browsing this forum: No registered users and 30 guests