Welcome Guest, Not a member yet? Register   Sign In
How do i redirect user to "home" controller after successfully loggin?
#3

Thank you! The return redirect()->to('home'); option worked like a charm but the reverse routing is showing me a ghost maybe its because i am still new and getting the hang of codeignter 4.

I added this following in my Route.php
$routes->add('home','Home::index');

Then in my login controller i returned it like:
return redirect(base_url('home'));

but i am still getting this:
{0, string} route cannot be found while reverse-routing.

What am i missing?
Reply


Messages In This Thread
RE: How do i redirect user to "home" controller after successfully loggin? - by tebogosebake - 01-23-2019, 11:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB