connect -> login

This commit is contained in:
Thomas Rubini 2024-02-21 18:07:27 +01:00
parent 972842eccf
commit 4e7717b46b
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373
3 changed files with 1 additions and 39 deletions

View File

@ -1,18 +0,0 @@
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
class ConnectController extends AbstractController
{
#[Route('/connect', name: 'connect')]
public function index(): Response
{
return $this->render('connect/index.html.twig', [
'controller_name' => 'ConnectController',
]);
}
}

View File

@ -24,7 +24,7 @@
<img src="{{ asset('/styles/search.svg') }}" alt="Search">
</label>
</form>
<a href="{{url('connect')}}" class="button-link">Connect</a>
<a href="{{url('app_login')}}" class="button-link">Connect</a>
</header>
{% endblock %}

View File

@ -1,20 +0,0 @@
{% extends 'base.html.twig' %}
{% block title %}Hello ConnectController!{% 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>/Volumes/Little-Disk/kap/Documents/IUT/3/S6.A.05 - Dev avancé/ProjetSymfony/src/Controller/ConnectController.php</code></li>
<li>Your template at <code>/Volumes/Little-Disk/kap/Documents/IUT/3/S6.A.05 - Dev avancé/ProjetSymfony/templates/connect/index.html.twig</code></li>
</ul>
</div>
{% endblock %}