Welcome Guest, Not a member yet? Register   Sign In
Controller cannot have function of same name?
#1

[eluser]Genki1[/eluser]
Is there a restriction on naming a controller function the same as the controller?

For example, if I have a controller named "test" and add a function named "test()" inside that controller, then CI complains "404 The page you requested was not found". I have tried this in a different controller and get the same result.

In the User Guide under "Controllers," it does not say this is not allowed.

Any feedback?




Theme © iAndrew 2016 - Forum software by © MyBB