views:

98

answers:

1

When using Zend Studio to write views for a MVC framework, is there any way of having those variables autocomplete, perhaps using PHPdoc?

For example, I set a variable in a view called $cart which is an instance of my ShoppingCart class. When I type "$cart->", I'd like the IDE to pop up with all of the objects properties.

A: 

Hi,

in Netbeans it is possible to do the following:

/* @var $var Class */

not sure if it works in eclipse.

ArneRie