src/Cpm/JovenesBundle/Controller/EventoController.php
/**
     * Displays a form to edit an existing Evento entity.
     *
     * @Route("/{id}/edit", name="evento_edit")
     * @Template()
     */
Displays a form to edit an existing Evento entity.
Displays a form to edit an existing Evento entity .
public function editAction($id)
    {
        $entity = $this->getEntityForUpdate('CpmJovenesBundle:Evento', $id);
		$editForm = $this->createForm(new EventoType(), $entity);
        $deleteForm = $this->createDeleteForm($id);
        return array(
            'entity'      => $entity,
            'edit_form'   => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),
        );
    }
public function editAction ( $ id ) { $ entity = $ this -> getEntityForUpdate ( 'CpmJovenesBundle:Evento' , $ id ) ; $ editForm = $ this -> createForm ( new EventoType ( ) , $ entity ) ; $ deleteForm = $ this -> createDeleteForm ( $ id ) ; return array ( 'entity' => $ entity , 'edit_form' => $ editForm -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
Displays a form to edit an existing Evento entity.
Displays a form to edit an existing Evento entity .