Dardo, I've been looking for an option like this for a while, are
these settings accesible everywhere or just the controllers that
inherit from that AppController?
On Jan 11, 5:09 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> I usually create app/config/settings.php , then in AppController
> beforeFilter I do Configure::load('settings');
>
> app/config/settings.php :
>
> $config['Settings']['an_option'] = 'its value';
>
> Then in my code I can so $value = Configure::read('Settings.an_option');
>
> On Jan 10, 2008 6:53 PM, Novice Programmer <[EMAIL PROTECTED]> wrote:
>
> > Thanks Samuel. Thank you very much.
>
> > On 1/11/08, Samuel DeVore <[EMAIL PROTECTED]> wrote:
>
> > > and tutorial to go with it
>
> >http://bakery.cakephp.org/articles/view/confcomponent-db-based-config...
>
> > > On Jan 10, 2008 2:43 PM, Samuel DeVore <[EMAIL PROTECTED]> wrote:
>
> >http://bakery.cakephp.org/articles/view/confcomponent-db-based-config...
>
> > > > is one
>
> > > > On Jan 10, 2008 2:00 PM, Novice Programmer <[EMAIL PROTECTED] >
> > wrote:
> > > > > Hello Steve,
>
> > > > > Thanks for the reply. I have a lot of configuration files, so i think
> > > > > appending at the end of one file wont be advisable for me. Can you
> > point me
> > > > > to any such example of the second approach you suggested? I will be
> > > > > thankful.
>
> > > > > thanks.
>
> > > > > On 1/11/08, MrTufty < [EMAIL PROTECTED]> wrote:
>
> > > > > > It depends how many configuration settings you need to store.
>
> > > > > > Personally, I'm just adding to the bottom of app/config/core.php -
> > > > > > seems to work fairly effectively.
>
> > > > > > Others have used a model and component in order to store
> > configuration
> > > > > > settings in the database. I haven't tried this yet.
>
> > > > > > Steve
>
> > > > > > On Jan 10, 8:09 pm, "Novice Programmer" < [EMAIL PROTECTED]>
> > > > > > wrote:
> > > > > > > Hello Guys,
>
> > > > > > > I have a legacy appliaiton that i am porting to cake to avoid the
> > > > > clutter of
> > > > > > > code in my php pages. That application is using configuration
> > > > > > > file(traditional config.php). I was wonderting that what is the
> > best
> > > > > place
> > > > > > > where it would go when thinking of cake paradigm. Please Help.
>
> > > > > > > --
> > > > > > > Thanks & Regards,
> > > > > > > Novice (http://ishuonweb.wordpress.com/).
>
> > > > > --
> > > > > Thanks & Regards,
> > > > > Novice (http://ishuonweb.wordpress.com/).
>
> > > > --
> > > > (the old fart) the advice is free, the lack of crankiness will cost you
>
> > > > - its a fine line between a real question and an idiot
>
> > > >http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
>
> > > --
> > > (the old fart) the advice is free, the lack of crankiness will cost you
>
> > > - its a fine line between a real question and an idiot
>
> > >http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
>
> > >http://ishuonweb.wordpress.com/).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---