Routing: Directory not setting in time - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: Routing: Directory not setting in time (/showthread.php?tid=61316) |
Routing: Directory not setting in time - Xeno - 04-08-2015 Hi guys, longtime user here. Developing a new site on RC3. I'm using $routing[ 'directory' ] = 'storefront'; in my index.php. My default controller is simply 'boston'. In Router.php, when _set_default_controller() is called from _set_routing(), it attempts to set the boston controller as the default but finds it doesn't exist. The reason being the directory is not being set in the constructor until after _set_routing() is called, resulting in $this->directory() on line 304 not returning anything. I'll do my own little override for now with a fix, I just wanted to bring it to your attention. Keep up the great work! |