Skip to content

Instantly share code, notes, and snippets.

@notomato
Created August 12, 2012 11:59
Show Gist options
  • Save notomato/3331560 to your computer and use it in GitHub Desktop.
Save notomato/3331560 to your computer and use it in GitHub Desktop.
Custom environment variables example
// This can go in a custom bootstrap file
use lithium\core\Environment;
Environment::set('foo.com', array(
'something' => array(
'filename' => 'foo.yml'
)
));
Environment::set('bar.com', array(
'something' => array(
'filename' => 'bar.yml'
)
));
Environment::set('baz.com', array(
'something' => array(
'filename' => 'baz.yml'
)
));
// Then anywhere in your app, you can just use:
Environment::get('something.filename')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment