I have been looking through the guide and thought i would give it a test but when i create a the Echo Say controller it get an error as it seems to put ‘en’ Infront of the URL, any help would be appreciated
404
The page /en/say not found.
The above error occurred while the Web server was processing your request.
Please contact us if you think this is a server error. Thank you.
<?php
declare(strict_types=1);
use App\Controller\SiteController;
use Yiisoft\Router\Group;
use Yiisoft\Router\Route;
use App\Controller\EchoController;
return [
Route::get('/say[/{message}]')->action([EchoController::class, 'say'])->name('echo/say'),
Group::create('/{_language}')
->routes(
Route::get('/')->action([SiteController::class, 'index'])->name('home'),
),
];