|
请问该如何让URL可以支援这种方式?
http://xxxxxx/en/ - English
http://xxxxxx/cn/ - Chinese
http://xxxxxx/fr/ - French
原本 /Core::controller/Core::method/
变成 /Core: anguage/Core::controller/Core::method/
(1)http://xxxxxx/en/news/
=>取出 视图根目录 application\views\en\news.php
(2)http://xxxxxx/cn/news/
=>取出 视图根目录 application\views\cn\news.php
(3)http://xxxxxx/fr/faq/
=>取出 视图根目录 application\views\fr\faq.php
经由语言的通配符路由规则,配置相关的视图语言的目录?
|
|