Welcome Guest, Not a member yet? Register   Sign In
Question with controllers.
#1

[eluser]Yunohoo[/eluser]
So I have a question about CI controllers. I can set the inital controller to load, but how about when you're using subdirectories?

What I mean is I have a folder in my /controllers/ folder called "test" and one file within called index.php.

Well I have to go to http://example.com/test/index to load that controller.

Is it possible to set it up so if I go to http://example.com/test it loads the index.php controller by default?
#2

[eluser]Aken[/eluser]
Use URI routing, or create a Test controller in your root controller folder, and only include an index() method inside of it.




Theme © iAndrew 2016 - Forum software by © MyBB