Bundle/BusinessPageBundle/Controller/BusinessTemplateController.php
public function editAction(View $view)
    {
        $editForm = $this->createEditForm($view);
        $deleteForm = $this->createDeleteForm($view->getId());

        $parameters = [
            'entity'      => $view,
            'form'        => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),
        ];

        return new JsonResponse([
            'html' => $this->container->get('templating')->render(
                'VictoireBusinessPageBundle:BusinessTemplate:edit.html.twig',
                $parameters
            ),
            'success' => true,
        ]);
    }
public function editAction(View $view)
    {
        $editForm = $this->createEditForm($view);
        $deleteForm = $this->createDeleteForm($view->getId());

        $parameters = [
            'entity'      => $view,
            'form'        => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),
        ];

        return new JsonResponse([
            'html' => $this->container->get('templating')->render(
                'VictoireBusinessPageBundle:BusinessTemplate:edit.html.twig',
                $parameters
            ),
            'success' => true,
        ]);
    }
public function editAction ( View $ view ) { $ editForm = $ this -> createEditForm ( $ view ) ; $ deleteForm = $ this -> createDeleteForm ( $ view -> getId ( ) ) ; $ parameters = [ 'entity' => $ view , 'form' => $ editForm -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , ] ; return new JsonResponse ( [ 'html' => $ this -> container -> get ( 'templating' ) -> render ( 'VictoireBusinessPageBundle:BusinessTemplate:edit.html.twig' , $ parameters ) , 'success' => true , ] ) ; }
Displays a form to edit an existing BusinessTemplate entity.

@Route("/{id}/edit", name="victoire_business_template_edit")
@Method("GET")
@ParamConverter("id", class="VictoireCoreBundle:View")

@throws \Exception

@return JsonResponse The entity and the form
Displays a form to edit an existing BusinessTemplate entity .