Have you looked at the session component?
I do something similar:
class AppController extends Controller {
var $components=array('RequestHandler', 'Session');
...
function beforeFilter()
{
if(isset($this->params['url']['lang']))
{
$this->Session->write('lang', $this->params['url']['lang']);
}
...
}
Hope that helps...
On Feb 2, 5:48 pm, "Kathrin" <[EMAIL PROTECTED]> wrote:
> I want so save the language setting, a choice of user, (Array
> ( [language] => deu )) in session. I create a new action like
> change_language an now I try to save the Choice in the session of the
> user.
> Have somebody an idea or a simple example?
> Many Thanks
> Kathrin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---