Jelajahi Sumber

Suppression du conntroller et template demo

François 5 tahun lalu
induk
melakukan
e9d87ec6a9
2 mengubah file dengan 0 tambahan dan 39 penghapusan
  1. 0 19
      src/Controller/DemoController.php
  2. 0 20
      templates/demo/index.html.twig

+ 0 - 19
src/Controller/DemoController.php

@@ -1,19 +0,0 @@
-<?php
-
-namespace App\Controller;
-
-use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
-use Symfony\Component\Routing\Annotation\Route;
-
-class DemoController extends AbstractController
-{
-    /**
-     * @Route("/demo", name="demo")
-     */
-    public function index()
-    {
-        return $this->render('demo/index.html.twig', [
-            'controller_name' => 'DemoController',
-        ]);
-    }
-}

+ 0 - 20
templates/demo/index.html.twig

@@ -1,20 +0,0 @@
-{% extends 'base.html.twig' %}
-
-{% block title %}Hello DemoController!{% endblock %}
-
-{% block body %}
-<style>
-    .example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; }
-    .example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
-</style>
-
-<div class="example-wrapper">
-    <h1>Hello {{ controller_name }}! ✅</h1>
-
-    This friendly message is coming from:
-    <ul>
-        <li>Your controller at <code><a href="{{ '/home/francois/http/films4/src/Controller/DemoController.php'|file_link(0) }}">src/Controller/DemoController.php</a></code></li>
-        <li>Your template at <code><a href="{{ '/home/francois/http/films4/templates/demo/index.html.twig'|file_link(0) }}">templates/demo/index.html.twig</a></code></li>
-    </ul>
-</div>
-{% endblock %}