How to get Default Controller ? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: How to get Default Controller ? (/showthread.php?tid=62562) |
How to get Default Controller ? - maxime59 - 07-29-2015 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 ? Thanks RE: How to get Default Controller ? - mwhitney - 07-29-2015 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. |