Example #1
0
 public function activerAction(OffreEmploi $offre)
 {
     $em = $this->getDoctrine()->getManager();
     $offre->setActif('A');
     $em->persist($offre);
     $em->flush();
     /*   return $this->redirect($this->generateUrl('amie_offresemplois_offres', array(
              'actif'    => 'inactif'
          ))); */
     $referer = $this->getRequest()->headers->get('referer');
     return $this->redirect($referer);
 }
Example #2
0
 public function activeroffreAction(OffreEmploi $offre)
 {
     $em = $this->getDoctrine()->getManager();
     $layout = $this->getLayout($em);
     $offre->setActif('A');
     $em->persist($offre);
     $em->flush();
     return $this->redirect($this->generateUrl('amie_user_gestion'));
 }