CodeIgniter Forums

Full Version: Routing: Directory not setting in time
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!