Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding docs for $_ENV['KOHANA_ENV']. Refs #3254
  • Loading branch information
kiall committed Sep 20, 2010
1 parent fd2304c commit 9c04794
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guide/about.install.md
Expand Up @@ -32,6 +32,8 @@ There are a few things you'll want to do with your application before moving int
3. Turn on APC or some kind of opcode caching.
This is the single easiest performance boost you can make to PHP itself. The more complex your application, the bigger the benefit of using opcode caching.

[!!] Note: The default bootstrap will set Kohana::$environment = $_ENV['KOHANA_ENV'] if set. Docs on how to supply this variable are available in your web server's documentation (e.g. [Apache](http://httpd.apache.org/docs/1.3/mod/mod_env.html#setenv), [Lighttpd](http://redmine.lighttpd.net/wiki/1/Docs:ModSetEnv#Options)). This is considered better practice than many alternative methods to set Kohana::$enviroment.

/**
* Set the environment string by the domain (defaults to Kohana::DEVELOPMENT).
*/
Expand Down

0 comments on commit 9c04794

Please sign in to comment.