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




Theme © iAndrew 2016 - Forum software by © MyBB