Welcome Guest, Not a member yet? Register   Sign In
Controller not found except by route
#3

[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
Code:
(\S*)

and
Code:
$1

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è


Messages In This Thread
Controller not found except by route - by El Forum - 01-06-2011, 01:54 PM
Controller not found except by route - by El Forum - 01-06-2011, 02:29 PM
Controller not found except by route - by El Forum - 01-06-2011, 04:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB