Ejemplo n.º 1
0
 public function alta_funcion_inAction()
 {
     if ($this->VerificoPerfil()) {
         $request = $this->getRequest();
         $descripcion = $request->request->get('descripcion');
         $funcion = new funcion();
         $funcion->setDescripcion($descripcion);
         $em = $this->getDoctrine()->getManager();
         $em->persist($funcion);
         $em->flush();
         return $this->render('tutoriasBundle:Default:alta_funcion.html.twig');
     } else {
         return $this->loginAction();
     }
 }