• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.