src/acme/sitioBundle/Controller/templateController.php
/**
     * Displays a form to edit an existing template entity.
     *
     */
Displays a form to edit an existing template entity.
Displays a form to edit an existing template entity .
public function editAction($id)
    {
        $em = $this->getDoctrine()->getManager();
        $entity = $em->getRepository('sitioBundle:template')->find($id);
        if (!$entity) {
            throw $this->createNotFoundException('Unable to find template entity.');
        }
        $editForm = $this->createEditForm($entity);
        $deleteForm = $this->createDeleteForm($id);
        return $this->render('sitioBundle:template:edit.html.twig', array(
            'entity'      => $entity,
            'edit_form'   => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),
        ));
    }
public function editAction ( $ id ) { $ em = $ this -> getDoctrine ( ) -> getManager ( ) ; $ entity = $ em -> getRepository ( 'sitioBundle:template' ) -> find ( $ id ) ; if ( ! $ entity ) { throw $ this -> createNotFoundException ( 'Unable to find template entity.' ) ; } $ editForm = $ this -> createEditForm ( $ entity ) ; $ deleteForm = $ this -> createDeleteForm ( $ id ) ; return $ this -> render ( 'sitioBundle:template:edit.html.twig' , array ( 'entity' => $ entity , 'edit_form' => $ editForm -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , ) ) ; }
Displays a form to edit an existing template entity.
Displays a form to edit an existing template entity .