Routes inquiry |
[eluser]stevefink[/eluser]
One more question, if it's okay. I have the following in routes.php: $route['default_controller'] = "bar"; This works great if I go to http://foo/ It'll load controllers/bar.php with the view in index() { } as expected. However if I try to do http://foo/bar, it 404's, and tries to retrieve /bar/ from the DocumentRoot. Is there anyway to change this behavior so that http://foo/bar/ also tries to go to the bar controller and loads index() { } ? Thanks!
[eluser]Michael Wales[/eluser]
Try going to http://foo/index.php/bar To get rid of the index.php you need to implement some .htaccess magic as outlined in the User Guide. |
Welcome Guest, Not a member yet? Register Sign In |