リンクを生成しています (これは、言語が「fre」に設定されている場合です):
$html->link('About', array('controller' => 'pages', 'action' => 'about', 'language'=> 'fre')) ;
上記のように、言語 [eng|fre] のサブディレクトリもあります。これは、次のいずれかの言語にすることができます。
私は次のようにルーティングしています:
Router::connect('/:language/:controller/:action/*',
array(),
array('language' => 'eng|fre'));
// this worked before the language subdomain
Router::connect('/about',array('controller'=>'pages','action'=>'about'));
私が抱えている問題は、URLを次のようにしたいということです:
/eng/about
/fre/about
しかし、明らかに彼らは次のように出てきています:
/eng/pages/about
/fre/pages/about