Hi Dario,

I think creating an IT controller is going to mean a bit of unnecessary
work on Cakes part.

Why not create two route files, or sections, and load the routes based
upon the first parameter of the url (with a default)?

So you would have in routes.php:

 <?php
    $parts=split('/',$from_url);
    $lang=$parts[0];

if ($lang =="en")
{
    $route-> ....
}
else // assume default language.
{
    $route-> ....
}
?>

No point loading all of your IT routes, if the url tells you that those
routes aren't needed.

In your app_controller beforeFilter (or also in routes.php, if you can
access the session there) you could check the url as Kitten mentioned
and set the session language and off you go.

HTH,

AD7six


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