Thinkphp supports multiple languages. This article mainly introduces thinkphp to implement multi-language functions (language packs). For more information, see section 1. in the config. add the following configuration code to php :? Phpr this
Thinkphp provides multilingual functions (language packs ). 1. add the following configuration copy code in config. php of Home (your project name :? Phpreturnarray (configuration item value: LANG_SWITCH_ONtrue, enable language pack function 1. add
Requirement: the foreground uses English (en_us) by default. You can select Chinese (zh_cn), and the English page is still in English. Idea: Add lang to the accessed url],
Requirement: the foreground uses English (en_us) by default. You can select
This article mainly introduces thinkphp to implement multi-language functions (language packs). For more information, see 1. Add the following configuration in config. php of Home (your project name ).
The Code is as follows:
Return array (//
Administrators of more than 3 million Internet websites around the world are using PHP, making it one of the most popular server-side scripting languages. It features fast running, stable and reliable, cross-platform, and openSource codeSoftware.
Administrators of more than 3 million Internet websites around the world are using PHP, making it one of the most popular server-side scripting languages. It features fast running, stable and reliable, cross-platform, and open source software.
PHP code audit documents were updated last year. they were not well written, and some were not fully written. I have referenced many documents.
The owasp codereview should also be 2.0.
Let's give some suggestions.
Directory
1. Overview 3
2.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.