src/Controller/MainController.php line 46

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. class MainController extends AbstractController {
  7.     #[Route('/'name'home')]
  8.     public function index(): Response {
  9.         return $this->render('home.html.twig', ['activeMenu' => 'home']);
  10.     }
  11.     #[Route('/pro_nac.html'name'pro_nac')]
  12.     public function about(): Response {
  13.         return $this->render('about.html.twig', ['activeMenu' => 'pro_nac']);
  14.     }
  15.     #[Route('/pocluhi_evaluator.html'name'service_evak')]
  16.     public function service_evak(): Response {
  17.         return $this->render('pages/service_evak.html.twig', ['activeMenu' => 'service_evak']);
  18.     }
  19.     #[Route('/transport.html'name'transport')]
  20.     public function transport(): Response {
  21.         return $this->render('pages/transport.html.twig', ['activeMenu' => 'transport']);
  22.     }
  23.     #[Route('/sipuchni-materiali.html'name'sipuchi')]
  24.     public function sipuchi(): Response {
  25.         return $this->render('pages/sipuchi.html.twig', ['activeMenu' => 'sipuchi']);
  26.     }
  27.     #[Route('/nasi_autopark.html'name'autopark')]
  28.     public function avtopark(): Response {
  29.         return $this->render('pages/avtopark.html.twig', ['activeMenu' => 'avtopark']);
  30.     }
  31.     #[Route('/evakuator.html'name'avtopark')]
  32.     public function evakuator(): Response {
  33.         return $this->render('autopark/evakuator.html.twig', ['activeMenu' => 'avtopark']);
  34.     }
  35.     #[Route('/katafalk.html'name'katafalk')]
  36.     public function katafalk(): Response {
  37.         return $this->render('pages/katafalk.html.twig', ['activeMenu' => 'avtopark']);
  38.     }
  39. }