0

Hi all

I'm am using Netbeans 6.5 on ubuntu for programming PHP.

When I create an instance of a class and type "->" after the variables name, I don't get to see any methods. Even when I press CTRL-Space, it only says "No suggestions"...

Code templates do work (like typing "fnc" and pressing tab to get a function template).

Can anyone help me out please?

Thx in advance
Grts, K?!

2
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by K?!
0

Here's what I do to remedy the problem. I found it after a good bit of Google searching.

I think this is all you have to do, since you likely have your work set up as a project and Netbeans should have traversed all files available to your project.

At the top of a file, above the "class" declaration, put these lines:

/*
	* @property Database_Core $db
	*/

Here Database_Core is a class and $db is the instance of the class represented as a variable in that working file.

To call a method/property of that object inside the class, usage would look like this: $this->db->... .

I know that efforts have been undertaken to make a master 'property' file in which a list of these types of definitions are made, but personally, I haven't had a need for them.

0

Hmmm, I tried it, and it didn't really work.
And even if it did, if I have to do this for every variable... It would be nice if would be possible just to make it work automatically.

Thx for your effort.

Grtz, K?!

0

Here's some extra info: the code completion does work when programming in Java.
EDIT: And all my autocompletion options are marked. Except for "Case sensitive code completion", but that shouldn't be the problem I guess

0

Hi again

Sorry for posting three times in a row and answering my own threads =D.

I have installed netbeans 6.7 now and it works there. I don't know how to solve the problem in netbeans 6.5, but it doesn't really matter anymore.

Grtz, K?!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.