Acme\DemoBundle\Controller\TodoController::newTodoAction PHP Method

newTodoAction() public method

Presents the form to use to create a new todo.
public newTodoAction ( ) : Symfony\Component\Form\FormTypeInterface
return Symfony\Component\Form\FormTypeInterface
    public function newTodoAction()
    {
        $view = $this->view($this->createForm(new TodoType()), 200)->setTemplate('AcmeDemoBundle:Todo:newTodo.html.twig')->setTemplateVar('todo');
        return $this->handleView($view);
    }