前些天有朋友估计是看了由thinkphp写的文章《ThinkPHP3.1快速入门(17)多语言》(地址:http://www.thinkphp.cn/info/188.html),但还有些朋友没有可能还没有调试成功,特意奉上一个简单的demo,说句实在话,这篇文章我也看过,受益匪浅啊
废话不多说,这个就是一个简单的基于thinkphp3.1框架的多语言切换demo,特点就是非常简单,代码很整洁,都有注释,一看就明白,还有不明白的请参考
《ThinkPHP3.1快速入门(17)多语言》http://www.thinkphp.cn/info/188.html
我用的框架式tp3.1,其他版本没去测试,应该也还是没有问题的哈
该demo没用链接数据库,只用了一个简单的post提交
上两张图片
thinkphp3.1多语言切换简单demo.zip
( 1.56 MB 下载:320 次 )
AD:真正免费,域名+虚机+企业邮箱=0元

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version
Visual web development tools
