Ok I have a controller named Login and have an index() function that displays the view user/login. I build the urls with user/login, but with the redirect, I’m doing this:
redirect('/user/login/');
But I’ve also tried redirect('/login/');
How comes my login won’t load? It keeps giving me a 404 error…
I’ve also tried ('/login/index') and ('/login')
It sounds like you have only one controller,
Login, with only one page,index, in it, so why do you need a redirect? Are you just trying to get your index page to show your login view? If so you do that with something like: