Acme\DemoBundle\Controller\TodoController::newTodoAction PHP 메소드

newTodoAction() 공개 메소드

Presents the form to use to create a new todo.
public newTodoAction ( ) : Symfony\Component\Form\FormTypeInterface
리턴 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);
    }