[eluser]Cristian Gilè[/eluser]
Hi sehummel,
Quote:I have a controller called login. It’s in the resources folder in my controllers folder. It loads a view called login_form. But for the life of me it will not load if I go to domain.com/resources/login or domain.com/resources/index.
You go to to domain.com/resources/login without index.php. Do you use .htaccess? If not, it should be domain.com/index.php/resources/login.
Quote:The index function works when I use the route, but not when I use the above domain.com paths. I assume that is why it cannot find the validate_credentials method. What am I doing wrong?
Again, try domain.com/index.php/resources/login
Quote:But what do the
and
do?
(\S*) is a regex matching non-whitespace character.
$1 is the remapped variable from the route (what has been passed as (\S*))
Cristian Gilè