src/AppBundle/Controller/ValorSistemaController.php
/**
     * Displays a form to edit an existing valorSistema entity.
     *
     * @Route("/{id}/editar", name="ajustes_edit")
     * @Method({"GET", "POST"})
     */
Displays a form to edit an existing valorSistema entity.
Displays a form to edit an existing valorSistema entity .
public function editAction(Request $request, ValorSistema $valorSistema)
    {
        $editForm = $this->createForm('AppBundle\Form\ValorSistemaType', $valorSistema);
        $editForm->handleRequest($request);
        if ($editForm->isSubmitted() && $editForm->isValid()) {
            $this->getDoctrine()->getManager()->flush();
            return $this->redirectToRoute('ajustes_index');
        }
        return $this->render('valorsistema/edit.html.twig', array(
            'valorSistema' => $valorSistema,
            'edit_form' => $editForm->createView(),
            'ajustesmenu' => 1
        ));
    }
public function editAction ( Request $ request , ValorSistema $ valorSistema ) { $ editForm = $ this -> createForm ( 'AppBundle\Form\ValorSistemaType' , $ valorSistema ) ; $ editForm -> handleRequest ( $ request ) ; if ( $ editForm -> isSubmitted ( ) && $ editForm -> isValid ( ) ) { $ this -> getDoctrine ( ) -> getManager ( ) -> flush ( ) ; return $ this -> redirectToRoute ( 'ajustes_index' ) ; } return $ this -> render ( 'valorsistema/edit.html.twig' , array ( 'valorSistema' => $ valorSistema , 'edit_form' => $ editForm -> createView ( ) , 'ajustesmenu' => 1 ) ) ; }
Displays a form to edit an existing valorSistema entity.
Displays a form to edit an existing valorSistema entity .
//$deleteForm = $this->createDeleteForm($valorSistema); //return $this->redirectToRoute('ajustes_edit', array('id' => $valorSistema->getId())); //'delete_form' => $deleteForm->createView(),