Skip to content

Instantly share code, notes, and snippets.

@alextucker
Created March 2, 2011 22:51
Show Gist options
  • Save alextucker/851936 to your computer and use it in GitHub Desktop.
Save alextucker/851936 to your computer and use it in GitHub Desktop.
Changing init config based on environment
<?php
if (Kohana::$environment == Kohana::DEVELOPMENT) {
Kohana::init(array(
'base_url' => '/yourapp/',
'profile' => TRUE,
'caching' => FALSE,
'index_file' => TRUE,
));
} else {
//In Production
Kohana::init(array(
'base_url' => '/',
'profile' => FALSE,
'caching' => TRUE,
'index_file' => FALSE,
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment