Hi,

> routes.php
> <?php
>     $parts=split('/',$from_url);
>     $lang=$parts[0];
>     //Save $lang to session
>     $from_url = $parts[1] . '/' . $parts[2] .... // do it with
> something like join()
> 
>     $route-> ....
> ?>
> 
This works fine, except for saving $lang to session -- the session is not
yet available at this point.

Sure, I can access (again) the complete URL in my controller through
$this->params['url']['url'], but it would be much nicer to do all the work
in the dispatcher and remember the result for later.

Any ideas?

Heiner



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to