私はサイトを持っています。en、tr、ar、sp などの複数の言語をサポートするために開発する必要があります。
しかし、問題は、Codeigniter でそれを行う最善の方法は何ですか?
私はコントローラー( SITE )を持っています。私は(ホテル、都市、ページ、ブログ)のように多くの機能を持っています
このメソッドの前にセグメント ( language ) を追加したい。これは古いリンクです
http://example.com/hotel/mariot
http://example.com/hotel/hilton
http://example.com/city/london
http://example.com/city/paris
...
..
リンクをこのようにしたい
http://example.com/en/hotel/mariot
http://example.com/ar/hotel/mariot
http://example.com/sp/hotel/mariot
http://example.com/tr/hotel/mariot
http://example.com/en/city/london
http://example.com/ar/city/paris
....
..
すべての言語にコントローラーがあると考えることがありますが、可能です...
言語をサポートするためにすべてのリンクを変更する最善の方法は何ですか?
申し訳ありませんが、私の質問が明確でない場合は、これが私の英語です。