src/Cpm/JovenesBundle/Controller/EventoController.php
/**
     * Displays a form to create a new Evento entity.
     *
     * @Route("/new", name="evento_new")
     * @Template()
     */
Displays a form to create a new Evento entity.
Displays a form to create a new Evento entity .
public function newAction()
    {
        $entity = new Evento();
        $form   = $this->createForm(new EventoType(), $entity);
        return array(
            'entity' => $entity,
            'form'   => $form->createView()
        );
    }
public function newAction ( ) { $ entity = new Evento ( ) ; $ form = $ this -> createForm ( new EventoType ( ) , $ entity ) ; return array ( 'entity' => $ entity , 'form' => $ form -> createView ( ) ) ; }
Displays a form to create a new Evento entity.
Displays a form to create a new Evento entity .