I want to understand how Configure::write('Config.language','fre'), do I have to call this function in beforFilter() methode ? when i call it does it save the the configuration in session or it does not save at all ?
Configure::write() is really just for setting CakePHP configuration directives. You don't want to use it to write to the session (in fact, it just flat out doesn't do that). Chances are good that you're barking up the wrong tree if you're trying to use it. If it's saving state between requests that you want, check out the Session component at http://book.cakephp.org/view/173/Sessions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With