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
{{ message }}
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.
Create controllers with customs params and at first the id, and load routes.
Sending request.
What you expected
e.g. I expected to get my custom params with the id.
What happened instead
e.g. Instead, I got Error : Too few arguments to function Controller::test(), 1 passed and exactly 2.
Hey ! just found an exception about controllers method params. I wanted to pass (with or without url dynamic param) some custom object like a RequestObject.
To fix it, in Router.php, match() function, just before call $routes->setParameters($params);, add
Hey ! just found an exception about controllers method params. I wanted to pass (with or without url dynamic param) some custom object like a RequestObject.
To fix it, in Router.php,
match()
function, just before call$routes->setParameters($params);
, addThanks you.
The text was updated successfully, but these errors were encountered: