CodeIgniter Forums

Full Version: How to get Default Controller ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi at all,

I thinks it's an easy question but can't find the answer ?
I want to redirect to the default controller defined in $route['default_controller'] but I don't know how to have access to this data ?

Generally, your default controller is used for an empty route, so you would use redirect(). If you want it to use the default controller inside a directory, you have to use a URI that maps to that directory.