src/Controller/OtherPagesController.php line 95

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Entity\ContactForm;
  4. use App\Form\ContactFormType;
  5. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  6. use Symfony\Component\HttpFoundation\Response;
  7. use Symfony\Component\Routing\Annotation\Route;
  8. class OtherPagesController extends AbstractController
  9. {
  10.     #[Route('/plans'name'plans')]
  11.     public function index(): Response
  12.     {
  13.         return $this->render('other_pages/plans.html.twig', [
  14.             'controller_name' => 'OtherPagesController',
  15.             'user' => $this->getUser()
  16.         ]);
  17.     }
  18.     #[Route('/about'name'about')]
  19.     public function about(): Response
  20.     {
  21.         return $this->render('other_pages/about.html.twig', [
  22.             'controller_name' => 'OtherPagesController',
  23.             'user' => $this->getUser()
  24.         ]);
  25.     }
  26.     #[Route('/contacts'name'contacts')]
  27.     public function contacts(): Response
  28.     {
  29.         $contact = new ContactForm();
  30.         $form $this->createForm(ContactFormType::class, $contact);
  31.         return $this->render('other_pages/contacts.html.twig', [
  32.             'controller_name' => 'OtherPagesController',
  33.             'user' => $this->getUser(),
  34.             'form' =>$form->createView()
  35.         ]);
  36.     }
  37.     #[Route('/templates'name'templates')]
  38.     public function templates(): Response
  39.     {
  40.         return $this->render('other_pages/templates.html.twig', [
  41.             'controller_name' => 'OtherPagesController',
  42.             'user' => $this->getUser()
  43.         ]);
  44.     }
  45.     #[Route('/partner'name'partner')]
  46.     public function partner(): Response
  47.     {
  48.         return $this->render('other_pages/partner.html.twig', [
  49.             'controller_name' => 'OtherPagesController',
  50.             'user' => $this->getUser()
  51.         ]);
  52.     }
  53.     #[Route('/help-center'name'help-center')]
  54.     public function helpcenter(): Response
  55.     {
  56.         return $this->render('other_pages/helpcenter.html.twig', [
  57.             'controller_name' => 'OtherPagesController',
  58.             'user' => $this->getUser()
  59.         ]);
  60.     }
  61.     #[Route('/tutorial'name'turtorial')]
  62.     public function tutorial(): Response
  63.     {
  64.         return $this->render('other_pages/tutorial.html.twig', [
  65.             'controller_name' => 'OtherPagesController',
  66.             'user' => $this->getUser()
  67.         ]);
  68.     }
  69.     #[Route('/tips'name'tips')]
  70.     public function tips(): Response
  71.     {
  72.         return $this->render('other_pages/tips.html.twig', [
  73.             'controller_name' => 'OtherPagesController',
  74.             'user' => $this->getUser()
  75.         ]);
  76.     }
  77.     #[Route('/datenshutz'name'datenshutz')]
  78.     public function datenshutz(): Response
  79.     {
  80.         return $this->render('other_pages/datenschutz.twig', [
  81.             'controller_name' => 'OtherPagesController',
  82.             'user' => $this->getUser()
  83.         ]);
  84.     }
  85.     #[Route('/agb'name'agb')]
  86.     public function agb(): Response
  87.     {
  88.         return $this->render('other_pages/agb.html.twig', [
  89.             'controller_name' => 'OtherPagesController',
  90.             'user' => $this->getUser()
  91.         ]);
  92.     }
  93.     #[Route('/impressum'name'impressum')]
  94.     public function impressum(): Response
  95.     {
  96.         $contact = new ContactForm();
  97.         $form $this->createForm(ContactFormType::class, $contact);
  98.         return $this->render('other_pages/impressum.html.twig', [
  99.             'controller_name' => 'OtherPagesController',
  100.             'user' => $this->getUser(),
  101.             'form' => $form
  102.         ]);
  103.     }
  104.     #[Route('/customer-review'name'customer-review')]
  105.     public function customerReview(): Response
  106.     {
  107.         return $this->render('other_pages/review.html.twig', [
  108.             'controller_name' => 'OtherPagesController',
  109.             'user' => $this->getUser()
  110.         ]);
  111.     }
  112.     #[Route('/streamVideo'name'streamVideo')]
  113.     public function streamVideo(): Response
  114.     {
  115.         return $this->render('other_pages/contacts.html.twig', [
  116.             'controller_name' => 'OtherPagesController',
  117.             'user' => $this->getUser()
  118.         ]);
  119.     }
  120. }