AD7six gave me on irc a solution for the problem above:
e.g.
AppController
{
beforeFilter()
{
// Get Config from file or db or session
// maybe merge it
$app_config = ...
Configure::write('AppConfig',$app_config);
}
}
in your model OR controller you can do:
{
$app_config = Configure:read('AppConfig')
...
}
... so simple... man!
seems that Configure also writes and reads from the session
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---