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
hey, currently the redirect function not work like the docu describe it. Link
it result in an Argument 3 passed to CodeIgniter\HTTP\Response::redirect() must be of the type integer, null given
because route has null as default $code value which is not valid ( but suggested by the documentation )
so what behavior is the right one ?
(personally i would remove the default value of $code ( and switch $params and $code ) ) public function route(string $route, array $params=[], int $code=null, string $method='auto')
The text was updated successfully, but these errors were encountered:
Please provide a code sample how you're using this. The docs you linked to are for the common function redirect() while it looks like samples you're showing are calling it directly on the Response object, so I'm a bit confused.
hey, currently the redirect function not work like the docu describe it. Link
it result in an
Argument 3 passed to CodeIgniter\HTTP\Response::redirect() must be of the type integer, null given
because route has null as default $code value which is not valid ( but suggested by the documentation )
so what behavior is the right one ?
(personally i would remove the default value of $code ( and switch $params and $code ) )
public function route(string $route, array $params=[], int $code=null, string $method='auto')
The text was updated successfully, but these errors were encountered: