Or create a file called app/config/config.php like the following: <?php $config['app'] = array( 'setting1' => 'value1', 'setting2' => 'value2' ); ?>
Then on app/config/bootstrap.php add the following: Configure::load('config'); Then whenever you need to get these settings do: $setting1 = Configure::read('app.setting1'); $setting1 = Configure::read('app.setting2'); -MI --------------------------------------------------------------------------- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -----Mensaje original----- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de John David Anderson (_psychic_) Enviado el: Domingo, 06 de Mayo de 2007 01:18 a.m. Para: cake-php@googlegroups.com Asunto: Re: Application specific configuration /app/config/bootstrap.php or Class vars in your AppController, defined at /app/app_controller.php --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---