monster13

1、如何设置各类语言包切换方法

在language目录中新建Zn.php En.php

编辑php文件定义变量,前段引用

$_LANG[\'wellcome\']= \'欢迎您加入\';

$_LANG[\'add\']= \'增加\';

在前段引入时使用:require WEB_ROOT.\'/language/lang.php\';

$data = array(

\'name\' => $_LANG[\'wellcome\'],

);

分类:

技术点:

相关文章: