07-20-2023, 01:54 PM
I can't seem to get anything to work past the root path so far:
Do you put all your controller calls in the app.php file?
$app->get('/', function ($id) {
...
});
$app->get('/about', function ($id) {
...
});
Or do you put them in separate files?
So far the root get method works fine and renders a twig template, but anything past that does nothing.
Do you put all your controller calls in the app.php file?
$app->get('/', function ($id) {
...
});
$app->get('/about', function ($id) {
...
});
Or do you put them in separate files?
So far the root get method works fine and renders a twig template, but anything past that does nothing.