Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

AutoComplete Variable data in volt file???

like i said in the title.. think i have passed model data from controler to view file which here in this case is volt file... when i start type that model variable it should suggest the propery name of that model. is it posible here in volt file???

that same model autocomplete is working in controller file i'am using "phalcon-devtool"..

It will not work, autocomplete is doing your IDE and I think it has no way to determine type of volt variable you are writing.


If you're using PhpStorm it is (somewhat) possible by enabling the Symfony plugin for your project, and adding a comment as such in your template:

{# @var myvar \MyClass #}

Do make sure that you use the fully qualified class name.