Skip to content

Instantly share code, notes, and snippets.

@monsat

monsat/Site.php Secret

Created July 16, 2011 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monsat/da0f5ca88ab284a57ba2 to your computer and use it in GitHub Desktop.
Save monsat/da0f5ca88ab284a57ba2 to your computer and use it in GitHub Desktop.
Configure::load by CakePHP2.0 (CakePHP2.0.0-alpha)
// load config file "app/Config/Site.php"
App::import('Configure', 'PhpReader');
Configure::config('default', new PhpReader());
Configure::load('Site');
Configure::read('Site.title');
$config['Site']['title'] = 'example';
@monsat
Copy link
Author

monsat commented Sep 19, 2011

You needn't to use "App::import()" and "Configure::config()" since CakePHP2.0 RC2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment