Add support for params in route with new route dispatcher
This commit is contained in:
parent
0111ef9525
commit
e8d8e0e95b
12 changed files with 393 additions and 115 deletions
22
app/Controllers/TestController.php
Normal file
22
app/Controllers/TestController.php
Normal 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');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue