Welcome Guest, Not a member yet? Register   Sign In
Routing: Directory not setting in time
#1

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!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB