Welcome Guest, Not a member yet? Register   Sign In
addRedirect not working
#1

The "addRedirect" function does not work properly

Code:
$routes->add('users/profile', 'Users::profile', ['as' => 'profile']);

// Redirect to a named route
$routes->addRedirect('users/about', 'profile');
// Redirect to a URI
$routes->addRedirect('users/about', 'users/profile');

and it gives ErrorException Undefined offset: 1

Is there any solution to solve that issue?
Reply


Messages In This Thread
addRedirect not working - by BigBasha - 10-03-2019, 02:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB