Home >Backend Development >PHP Tutorial >TP5 multi-language switching problem, can anyone help me solve it?

TP5 multi-language switching problem, can anyone help me solve it?

WBOY
WBOYOriginal
2016-10-22 12:06:402962browse

In thinkphp 5, how to implement a URL like this:
http://xxxx/cn
http://xxxx/en
When the language is switched to Chinese, all addresses start with http://xxxx/cn, such as http://xxxx/cn/news/1.html; when the language is switched to English, all addresses start with http: //xxxx/en starts, such as http://xxxx/en/news/1.html

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn