• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NetBeans Plugin - Second Iteration

#11
(03-21-2015, 12:34 AM)djwoods Wrote: Thank you for reporting this bug.
What operating system are you using?
I suspect it's an issue with file path syntax being different on Mac and Windows.
I'll be sure to push a fix for the next iteration.

I use windows 7 and netbeans 8.0.2
Reply

#12
so, this version only does code completion for methods within the same class as far as i can tell..

it would be really nice to have global code completion where you can see the methods of external classes
$this->someloadedclass->someextendedmethod->etc...
will this be implemented?
Reply

#13
guess not.. too bad.

does anyone know of an IDE that is able to have code completion with access to CI's loaded classes and it's methods and vars just like you would have with developing java for instance?

it would really make coding with CI a lot more comfertable.
Reply

#14
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  Wink

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.

[Image: storm_autocompletes_ci.png]

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:
/**
 * Class MY_Controller
 * 
 * Classes created be developer
 * @property Model_news $news
 * @property Model_pages $pages
 * @property Model_blog $blog
 * @property Model_products $products
 * 
 * Properties inherited from CI_Controller
 * @property CI_Loader $load
 * @property CI_Input $input
 * @property CI_Cache $cache
 * @property CI_Pagination $pagination
 * @property CI_Form_validation $form_validation
 * @property CI_DB_active_record $db
 */
class MY_Controller extends CI_Controller {} 

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.
Reply

#15
Hi!

When I load models in Controller, methods are not auto completed.

There is anything I can do about it?

Thanks for your effort Cool
:wq!


Fabio Beneditto - a.k.a. KamiKazeNH
"A vida é mais bela quando vista de cima de uma motocicleta"
"A hacker does for love what anyone will do for money"


Reply

#16
(03-16-2015, 03:26 PM)jlp Wrote: We have just tagged the second iteration of the CodeIgniter3 plugin for NetBeans, version 0.2.
The project repository can be examined or forked.
The NetBeans module can be downloaded and installed into your local NB for testing.

Documentation for the plugin has been started, but has a ways to go.


We would love to have your feedback. Enjoy!

i recognize that the current version is for CI3.0. Is there now or has there been a version of this plugin for CI2.x?  Certainly would make my life much easier, as I don't have the goahead to change/upgrade  my CI installation and apps to use CI3.
OM...

-------------------------
And on the pedestal these words appear:
'My name is Ozymandias, king of kings:
Look on my works, ye Mighty, and despair!'
Nothing beside remains. Round the decay
Of that colossal wreck, boundless and bare
The lone and level sands stretch far away.
Reply

#17
(06-18-2015, 09:08 AM)ozzy mandiaz Wrote:
(03-16-2015, 03:26 PM)jlp Wrote: We have just tagged the second iteration of the CodeIgniter3 plugin for NetBeans, version 0.2.
The project repository can be examined or forked.
The NetBeans module can be downloaded and installed into your local NB for testing.

Documentation for the plugin has been started, but has a ways to go.


We would love to have your feedback. Enjoy!

i recognize that the current version is for CI3.0. Is there now or has there been a version of this plugin for CI2.x?  Certainly would make my life much easier, as I don't have the goahead to change/upgrade  my CI installation and apps to use CI3.

anything?

anybody?

hello? 

cq? cq? This is Crystal Peak? cq? cq?
OM...

-------------------------
And on the pedestal these words appear:
'My name is Ozymandias, king of kings:
Look on my works, ye Mighty, and despair!'
Nothing beside remains. Round the decay
Of that colossal wreck, boundless and bare
The lone and level sands stretch far away.
Reply

#18
There are no plans for a version for CI2. There was an earlier half-attempt for that a couple of years ago, but it petered out.

This plugin, for CI3, seems to be stalled - not a lot of interest in refining it Sad
James Parry
Project Lead
Reply

#19
(07-01-2015, 12:23 PM)jlp Wrote: There are no plans for a version for CI2. There was an earlier half-attempt for that a couple of years ago, but it petered out.

This plugin, for CI3, seems to be stalled - not a lot of interest in refining it Sad

thanks for the reply. appreciate it very much. 

OM
OM...

-------------------------
And on the pedestal these words appear:
'My name is Ozymandias, king of kings:
Look on my works, ye Mighty, and despair!'
Nothing beside remains. Round the decay
Of that colossal wreck, boundless and bare
The lone and level sands stretch far away.
Reply

#20
Ozzy why not use sublime text with snippets on github, I can't recommend netbeans, anything that requires java is not a good idea Wink

http://www.infoworld.com/article/2613404...-dead.html
IgnitedCMS Pro
IgnitedCMS
Practical guide to IgnitedCMS - Book coming soon
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.