Welcome Guest, Not a member yet? Register   Sign In
netbeans PHP include path
#11

[eluser]yudi_set[/eluser]
Thanks for the comment, MyBelovedPHP
Also for a nice article on your blog, very useful.

Just to add some more info for others.
As shared by MyBelovedPHP, we can customize the Class property variables in the Comment to our need.
Netbeans for PHP also helps us in the process of typing it.

1. Type /** enter
2. It will display the comment block
/**
*
*/
3. Then we can start defining the class property that we're gonna use.
Eq:
/**
* @property CI_ // press CTRL-SPACE and will display all the CI classes
*/
4. Just for example, we want to use some functions from the email class
..
* @property CI_Email $email
...

Hope this info helps.
Thank you.
#12

[eluser]Oblique[/eluser]
Hello

In my app i've created file with properties like described here:
How to enable code completion in NetBeans for CI

I put my file (autocompletion.php) in nbproject folder, and in this file CC works fine. But in other project files CC doesn't work even if i put @properties in it.

Take a look at project structure: i've removed "application" folder from "system" folder, so they both are located in "www"

Any suggestions?
#13

[eluser]n0xie[/eluser]
For the load function just add:
Code:
@property CI_Loader $load

If you want to be able to autocomplete models, just add them as well. In my example I've loaded a library called 'Auth', which has several methods available as you can see.
Code:
@property Auth $auth

Obviously you want to generate these, which you can do easily within Netbeans.
[Image: http://img269.imageshack.us/img269/1769/...e65.th.png]
[Image: http://img196.imageshack.us/img196/1769/...e65.th.png]
#14

[eluser]rhasan[/eluser]
Hi I followed the process mentioned by BelovedPHP. But I am facing a problem. If my project is already open $this->db->… etc does not work. if i restart the netbeans then it works. now after the restart, in another file if i write the

Code:
@property CI_Loader $load...etc

code it does not work. I have to restart netbeans again to get it working Sad
So I have to restart each time i write the @properties in a new file….Can you please give me a solution. I am using netbeans 6.5

In short, do I need to restart netbeans each time I add @properties......etc in controller/model ?
#15

[eluser]n0xie[/eluser]
Hmmm it works fine here. The only difference I can think of is that I run the 6.7 Linux version.

Did you add this to your model?
Code:
/**
*
* @property CI_DB_active_record $db
*/

You could try to add the line and then re-open the file and see if that works.
http://img238.imageshack.us/i/screenshot...ide67.png/
#16

[eluser]rhasan[/eluser]
Thanks for the reply. I guess netbeans version may be the problem. Now everything seems fine. I also have written a tutorial for simpliciy here http://rhasan.com/blog/2009/09/codeignit...-netbeans/
#17

[eluser]beemr[/eluser]
very cool. can't wait to try this out. thx
#18

[eluser]darrenm[/eluser]
Just getting stuck into my first CI project since switching to NetBeans a few months ago.

yudi_set and MyBelovedPHP, you have just saved my fingers from an early death - thank you!
#19

[eluser]stackyPHP[/eluser]
i am struggling to get this to aptana ....still unable to configure CI 2 aptana ....anyone have a clue ?
#20

[eluser]MpaK69[/eluser]
Anyone can help with property like this

* @property User_mod $model('user')

?

is only my method in MY_Controller who will return my model object $this->user_mod if you call it like $this->model('user')? Netbeans cant see it o_O




Theme © iAndrew 2016 - Forum software by © MyBB