NetBeans Plugin - Second Iteration |
Hi.
My primary IDE for PHP projects is PhpStorm. Despite the fact it doesn't support CodeIgniter libraries' auto-completion out of the box, there is a simple trick to get exactly what you need ![]() You can simply add the docblock section before your class declaration (it can be controller, model, whatever) where you directly set the class of the properties inherited from the CodeIgniter base classes. ![]() In order to simplify things you can create core/MY_Controller.php file (in case you didn't do this before) and set all the properties there. PHP Code: /** Then you just inherit your controllers from MY_Controller and have your auto-completion working. Same thing should be done for Models. Maybe this way is not that perfect, but it is pretty easy and straightforward. Cheers. |
Welcome Guest, Not a member yet? Register Sign In |