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

WBOY
Release: 2016-10-22 12:06:40
Original
2942 people have browsed it

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template