Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load environmental routes based on Kohana::$environment_string #10

Open
taai opened this issue Jun 15, 2013 · 1 comment
Open

Load environmental routes based on Kohana::$environment_string #10

taai opened this issue Jun 15, 2013 · 1 comment

Comments

@taai
Copy link

taai commented Jun 15, 2013

Look at bootstrap.php
https://github.com/Zeelot/kohana-projecttemplate/blob/1.0/develop/application/bootstrap.php#L155

/**
 * Include the routes for the current environment.
 */

if ($routes = Kohana::find_file('routes', Kohana::$environment))
{
    include $routes;
}

I think that Kohana::$environment should be Kohana::$environment_string, because currently it tries to find file routes/40.php instead of routes/development.php.

@zeelot
Copy link
Owner

zeelot commented Jun 17, 2013

You're right! Want to make a pull request? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants