Google News
logo
Symfony - Interview Questions
How can we create action in the Symfony2 controller?
We can create action in Symfony 2 by using the following command :
public function indexAction()    
    {    
        return $this->render('user/index.html.twig', [ ]);    
    } 
Advertisement