<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class MainController extends AbstractController {
#[Route('/', name: 'home')]
public function index(): Response {
return $this->render('home.html.twig', ['activeMenu' => 'home']);
}
#[Route('/pro_nac.html', name: 'pro_nac')]
public function about(): Response {
return $this->render('about.html.twig', ['activeMenu' => 'pro_nac']);
}
#[Route('/pocluhi_evaluator.html', name: 'service_evak')]
public function service_evak(): Response {
return $this->render('pages/service_evak.html.twig', ['activeMenu' => 'service_evak']);
}
#[Route('/transport.html', name: 'transport')]
public function transport(): Response {
return $this->render('pages/transport.html.twig', ['activeMenu' => 'transport']);
}
#[Route('/sipuchni-materiali.html', name: 'sipuchi')]
public function sipuchi(): Response {
return $this->render('pages/sipuchi.html.twig', ['activeMenu' => 'sipuchi']);
}
#[Route('/nasi_autopark.html', name: 'autopark')]
public function avtopark(): Response {
return $this->render('pages/avtopark.html.twig', ['activeMenu' => 'avtopark']);
}
#[Route('/evakuator.html', name: 'avtopark')]
public function evakuator(): Response {
return $this->render('autopark/evakuator.html.twig', ['activeMenu' => 'avtopark']);
}
#[Route('/katafalk.html', name: 'katafalk')]
public function katafalk(): Response {
return $this->render('pages/katafalk.html.twig', ['activeMenu' => 'avtopark']);
}
}