You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function testParams($request, $response, $args) {
echo $args['testparam'];
}
Then go to: http://0.0.0.0:8888/test/thisistheparam and there you should see thisistheparam but instead there is an error and the first letter of the route parameter.
Warning: Illegal string offset 'testparam' in C:\Users\Jeff\Projects\test2\src\App\Controller\AppController.php on line 16
t
The text was updated successfully, but these errors were encountered:
I am having trouble getting the route parameters using this boilerplate. Here is what I am doing:
Add to src/App/Resources/routes/app.php:
Add to src/App/Controller/AppController.php:
Then go to: http://0.0.0.0:8888/test/thisistheparam and there you should see
thisistheparam
but instead there is an error and the first letter of the route parameter.The text was updated successfully, but these errors were encountered: