Question with controllers. |
[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?
[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. |
Welcome Guest, Not a member yet? Register Sign In |