• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
redirect() in CI4

#1
hi all!

Can't nderstand how working redirect in CI4 ?

if i use:
redirect('/auth/login');

i have error:
BASEPATH/Router/RouteCollection.php at line 967

Unable to locate a valid route.


help me please Blush
Reply

#2
Ah, looks you found a bug. Smile The redirect helper method now tries to lookup the route using named routes and reverse-routing first, then should attempt a generic redirect after that. However, looks like the reverseRoute method throws an exception and the helper method isn't catching it. If you could post a bug report over at GitHub, that would be a big help, and I'll get it fixed up tonight, hopefully, or early next week.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
Reply

#3
Thanks for fix man!
Reply

#4
No problem! Thanks for letting me know about it.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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