src/Cpm/JovenesBundle/Controller/PlantillaController.php
/**
     * Displays a form to create a new Plantilla entity.
     *
     * @Route("/new", name="plantilla_new")
     * @Template()
     */
Displays a form to create a new Plantilla entity.
Displays a form to create a new Plantilla entity .
public function newAction()
    {
        $entity = new Plantilla();
        $form   = $this->createForm(new PlantillaType(), $entity);
		$form->remove('codigo');
        return array(
            'entity' => $entity,
            'form'   => $form->createView()
        );
    }
public function newAction ( ) { $ entity = new Plantilla ( ) ; $ form = $ this -> createForm ( new PlantillaType ( ) , $ entity ) ; $ form -> remove ( 'codigo' ) ; return array ( 'entity' => $ entity , 'form' => $ form -> createView ( ) ) ; }
Displays a form to create a new Plantilla entity.
Displays a form to create a new Plantilla entity .