phalcon netbeans code completion MVC

82 views Asked by At

It's possible code completion if I define in controller

$this -> view -> this_is_my_var = 'hello world'

And I write in view (.phtml file)

$this -> view -> this_is(...) 

Netbeans show hints this_is_my_var

1

There are 1 answers

1
serghei On BEST ANSWER

Maybe you're looking for this?

PHP

$this->view->this_is_my_var1 = 'hello world';
$this->view->this_is_my_var2 = new \Phalcon\Registry();

View

/**
 * @var string $this_is_my_var1
 * @var \Phalcon\Registry $this_is_my_var2
 */