'en/news/:id/title-of-news' => array('news/index', name => 'en_news'), 'fr/nouvelles/:id/titre-de-la-nouvelle' => array('news/index', name => 'fr_news'),You can fetch the id param using
$this->request()->param('id', 'default');You can get a route using
$route = Router::get('fr_news');you will have to manually replace :id with your id value in $route, this has not been implemented yet.
$route = Router::get('news')And based on a global $lang var or something similar the routing system would return the given lang's url, something along those lines (just for visualization purpose):
'news' => array( 'en' => 'news/:id/:title', 'fr' => 'nouvelles/:id/:title' ),Hopefully that will make sense. Thanks again!
\Config::set('language', 'fr');and get it with
$lang = \Config::get('language');you set the default language (and a possible fallback language) in your app config file.
It looks like you're new here. If you want to get involved, click one of these buttons!