Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

variables from controller are not autocompleted in twig view #633

Closed
remmel opened this issue Nov 29, 2015 · 1 comment
Closed

variables from controller are not autocompleted in twig view #633

remmel opened this issue Nov 29, 2015 · 1 comment
Labels

Comments

@remmel
Copy link

remmel commented Nov 29, 2015

Hello,

Autocompletion on variables added by controller doesn't seems to work.

Eg, when I have the following controller :

    /**
     * @Route("/")
     * @Template("AppBundle:search.html.twig")
     */
    public function train(Request $request) {
        $user = new User();
        return [
            'varOne' => 1,
            'varTwo' => 2,
            'varThree' => 3,
            'user' => $user
        ];
    }

I'm expecting having autocompletion in the search.html.twig file typing:
{{varCURSOR_HERE_AND_CTRL_SPACE**}}** or {{user.CURSOR_HERE_AND_CTRL_SPACE}}

Thanks,

Rémy

PhpStorm 10.0.1
Symfony2 plugin 0.11.104

@Haehnchen
Copy link
Owner

fixed by fddd5f5 also related to #773

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants