-
-
Save monsat/da0f5ca88ab284a57ba2 to your computer and use it in GitHub Desktop.
Configure::load by CakePHP2.0 (CakePHP2.0.0-alpha)
This file contains 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
// load config file "app/Config/Site.php" | |
App::import('Configure', 'PhpReader'); | |
Configure::config('default', new PhpReader()); | |
Configure::load('Site'); | |
Configure::read('Site.title'); |
This file contains 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
$config['Site']['title'] = 'example'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You needn't to use "App::import()" and "Configure::config()" since CakePHP2.0 RC2.