Loading…

How to create Controllers's Action in Symfony2?

In your created controller you can create your action with the following code.

Example

                                        

public function indexAction()
{
     return $this->render('user/login.html.twig', [ ]);
}

Suggest An Answer

No suggestions avaliable!

Latest post from Symfony 2 interview questions

Ask Question