Hello I develop My Php Apps with Netbeans. If i acces a object like this $this->db-> and hit the space key it just shows me "No suggestions". But if i acces the same object like this $this->db- and hit the space key it shows me correct suggestions for complettiong the code. Is this a bug a feature or is this the correct php syntax like $this->db-q which i dont think its the correct syntax for accesing objects.
A:
I think, it's a bug. It is correct if $this->db and q are numbers, where q is a constant. But $this->db is a db object, isn't it?
If you use this
/**
* @var DbClassName
*/
public $db;
maybe Netbeans will find you what you want.
EDIT: This one works, but this is a nightly build. There could be other bugs:
Vili
2009-11-16 11:17:53
The $this->db is a db object thats correct
streetparade
2009-11-16 11:31:00
A:
If you type "$this->db->" and it doesn't show code completion options then try Ctrl-Space rather than just space. I'm using 6.7.1 and I haven't noticed the problem you are describing.
Rubicksman
2009-11-22 00:11:34