Symfony2 Twig Code Tips

HI All,

Thanks to the JetBrains guys for a great product!

I have a question about Symfony2 and Twig support. SHould I get code tips/popups for variable and functions in twig templates?

For example:

                <a href="{{ path('BerenBundle_tree_show', {'id':comment.tree.id, 'phylum': comment.tree.phylum}) }}#comment-{{ comment.id }}">
                    {{ comment.tree.name }}
                </a>
When I hit ctrl-space in the twig function I get "no suggestions" for the members of the comment object.

Should I see something? Here's a pic. I have 6.02 with latest build.

beren
Screen Shot 2013-05-18 at 7.34.17 AM.png

2 comments

Hi there,

AFAIK there is no variable completion implemented for twig files.

Few related tickets:


You can check the rest of twig tickets: http://youtrack.jetbrains.com/issues/WI?q=twig  and feel free to submit new one if none matches your needs.

0

Thanks - I'll check out those tickets!


0

Please sign in to leave a comment.