Search code examples
zend-frameworkautocompletecode-completionnetbeans-6.9zend-view

How to get code completion for variables into zend_view using netbeans 6.9.1?


i'm evaluating to switch to netbeans ide for managing my zend_framework project;

i'd like to have autocompletion for variable's name into my view, for variables defined in actions as i see in this screencast,

http://netbeans.org/kb/docs/php/zend-framework-screencast.html ,

but i can't figure out.

When i digit $this-> in any view i can't see none variable's name.

I'd like a lot to use this feature.

Thank you, Mirco.


Solution

  • You need to have Zend Framework either in the include path for the project within Netbeans or within the project itself.

    You can then use cmd+space after a "->" to autocomplete an object's methods. If Netbeans doesn't know the object you can use /* @var $objInstance Object_Class_Name

    Within a method call, you can use cmd+b to see the parameters of the method.