Created
February 28, 2011 23:24
-
-
Save alextucker/848266 to your computer and use it in GitHub Desktop.
Selecting Kohana enviroment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($_SERVER['SERVER_NAME'] == 'localhost' ) { | |
Kohana::$environment = Kohana::DEVELOPMENT; | |
} else { | |
Kohana::$environment = Kohana::PRODUCTION; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I love this:
and for config: