![]() |
netbeans PHP include path - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: netbeans PHP include path (/showthread.php?tid=12392) |
netbeans PHP include path - El Forum - 09-20-2010 [eluser]Unknown[/eluser] Hi everybody, This thread is very helpful, but it's missing the how-to make netbeans give auto-complete for our own models (the same procedure can be applied for controllers): -note that I'm using Netbeans 6.9.1 once you've created your project, with the www directory set root, you can see in the projects section your project with 2 voices: source files include path -click include path, and add a path to your models folder (tipically /whateveriswwwlocation/system/application/models) -now you can go back to your controller and add a property to all codeigniter's already listed above: 1)@property // now you go with a ctrl + space and start digit the name of the model you want, NetBeans will show it to you in the autocomplete! 2)@property YourModel $yourModel //the you give it a variable name - this is just an example name, of course. 3)try in a function of the controller tiping $this->, you will see your model in the autocomplete list, and then all its methods!!!! Hope this will helpful! netbeans PHP include path - El Forum - 09-29-2010 [eluser]Aviatrix[/eluser] [quote author="Daniele87" date="1284992708"]Hi everybody, This thread is very helpful, but it's missing the how-to make netbeans give auto-complete for our own models (the same procedure can be applied for controllers): -note that I'm using Netbeans 6.9.1 once you've created your project, with the www directory set root, you can see in the projects section your project with 2 voices: source files include path -click include path, and add a path to your models folder (tipically /whateveriswwwlocation/system/application/models) -now you can go back to your controller and add a property to all codeigniter's already listed above: 1)@property // now you go with a ctrl + space and start digit the name of the model you want, NetBeans will show it to you in the autocomplete! 2)@property YourModel $yourModel //the you give it a variable name - this is just an example name, of course. 3)try in a function of the controller tiping $this->, you will see your model in the autocomplete list, and then all its methods!!!! Hope this will helpful![/quote] i followed your tutorial but it didnt work , any other ideas ? ( ps i'm also using 6.9.1) |