Add support for params in route with new route dispatcher

This commit is contained in:
Maarten 2024-11-26 13:38:35 +01:00
parent 0111ef9525
commit e8d8e0e95b
12 changed files with 393 additions and 115 deletions

View file

@ -0,0 +1,22 @@
<?php
namespace App\Controllers;
use Core\Controllers\Controller;
use Core\View\Render;
class TestController extends Controller
{
/**
* Render index
*
* @return \Core\View\Render
*/
public function test(int $id): Render
{
dd($id);
return $this->response->view('subnet');
}
}