src/Controller/FachbereichController.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Entity\Pin;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Request;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. /**
  8.  * @Route("/fachbereich")
  9.  */
  10. class FachbereichController extends AbstractController
  11. {
  12.     /**
  13.      * @Route("/home", name="fachbereich_home")
  14.      */
  15.     public function home(Request $request)
  16.     {
  17.         $session $request->getSession();
  18.         $playVideo $session->get('playVideo');
  19.         $session->remove('playVideo');
  20.         return $this->render('fachbereich/home.html.twig', ['playVideo' => $playVideo]);
  21.     }
  22.     /**
  23.      * @Route("/idiopathische", name="fachbereich_idiopathische")
  24.      */
  25.     public function idiopathische(Request $request)
  26.     {
  27.         return $this->render('fachbereich/idiopathische.html.twig', []);
  28.     }
  29.     /**
  30.      * @Route("/pathophysiologie", name="fachbereich_pathophysiologie")
  31.      */
  32.     public function pathophysiologie(Request $request)
  33.     {
  34.         return $this->render('fachbereich/pathophysiologie.html.twig', []);
  35.     }
  36.     /**
  37.      * @Route("/diagnose", name="fachbereich_diagnose")
  38.      */
  39.     public function diagnose(Request $request)
  40.     {
  41.         return $this->render('fachbereich/diagnose.html.twig', []);
  42.     }
  43.     /**
  44.      * @Route("/therapie", name="fachbereich_therapie")
  45.      */
  46.     public function therapie(Request $request)
  47.     {
  48.         return $this->render('fachbereich/therapie.html.twig', []);
  49.     }
  50.     /**
  51.      * @Route("/fachinformation", name="fachbereich_fachinformation")
  52.      */
  53.     public function fachinformation(Request $request)
  54.     {
  55.         return $this->render('fachbereich/fachinformation.html.twig', []);
  56.     }
  57.     /**
  58.      * @Route("/downloads", name="fachbereich_downloads")
  59.      */
  60.     public function downloads(Request $request)
  61.     {
  62.         return $this->render('fachbereich/downloads.html.twig', []);
  63.     }
  64.     /**
  65.      * @Route("/archiv", name="fachbereich_archiv")
  66.      */
  67.     public function archiv(Request $request)
  68.     {
  69.         return $this->render('fachbereich/archiv.html.twig', []);
  70.     }
  71.     /**
  72.      * @Route("/ueber", name="fachbereich_ueber")
  73.      */
  74.     public function ueber(Request $request)
  75.     {
  76.         return $this->render('fachbereich/ueber.html.twig', []);
  77.     }
  78.     /**
  79.      * @Route("/impressum", name="fachbereich_impressum")
  80.      */
  81.     public function impressum(Request $request)
  82.     {
  83.         return $this->render('default/impressum.html.twig', []);
  84.     }
  85. }