关于多语言的routes设计问题
请问该如何让URL可以支援这种方式?http://xxxxxx/en/ - English
http://xxxxxx/cn/ - Chinese
http://xxxxxx/fr/ - French
原本 /Core::controller/Core::method/
变成 /Core::Language/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
经由语言的通配符路由规则,配置相关的视图语言的目录?
好奇问一下,
是不是这样的方式不好呢 之前写过一个,说下,用hook截取uri——segment(1),设置config的language
路由配置
视图可以不用建多语言的吧? 好吧。这个随意
页:
[1]