We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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.



631
Accepted
answer

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.