Hi,

I have this route on my routes.php

Router::connect('/:language/historia',array('controller' => 'pages',
'action' => 'display', 'historia','language' => '[a-z]{3}'));

This work but i need for a diferent url go to same page.
For example if i have.

www.example.com/spa/historia
www.example.com/eng/history

I have my PO files with translations, I can use __() funciton on routes.

Router::connect('/:language/'.__('historia'),array('controller' => 'pages',
'action' => 'display', 'historia','language' => '[a-z]{3}'));

Don't work.

Any idea?

thk.

Giro

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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

Reply via email to