Finish tag et commencer à ajouter les template.s

This commit is contained in:
2026-04-02 19:07:08 +02:00
parent 8a173ed2c7
commit 69a5a99e15
19 changed files with 620 additions and 34 deletions

View File

@@ -11,11 +11,14 @@ use App\Infrastructure\View;
*/
class PagesController extends Controller {
/**
* Définit les routes globales d'acceuil.
* @return array|\App\Http\Route[]
*/
public static function defineRoutes(): array
{
return [
self::Route( routeUrl: '/', routeName: 'home', routeAction: 'index', pageHeadTitle: "Home Page" ),
self::Route( routeUrl: '/test/{int}/', routeName: 'test', routeAction: 'test' ),
];
}
@@ -28,8 +31,4 @@ class PagesController extends Controller {
return new View( 'home', [ 'ok' => 'bla' ] );
}
public function test( string $id ): void {
echo "Coucou" . $id;
}
}