I need help
How can I tell cake that first paramter in routing is language
Router:Connect('/en/products/index/', Array('lang' =>'en',
'controller'=>'products', 'action'=>'index'));

so it can rewrite links in my views
$html->link(__('New Product', true), array('action'=>'add'));
so link can be
http://www.example.com/en/products/add

this is because I have dozen languages on web site...
npr for bosnian link should be

http://www.example.com/ba/proizvodi/dodaj

I have routing file filled with all routes
like
Router:Connect('/ba/products/pocetna/', Array('lang' =>'ba',
'controller'=>'products', 'action'=>'index'));

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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