19 lines
400 B
PHP
19 lines
400 B
PHP
<?php
|
|
namespace app\onlinechip\controller;
|
|
use \think\Controller;
|
|
use \think\Session;
|
|
use \think\Request;
|
|
use \think\Db;
|
|
use think\Lang;
|
|
|
|
class Index Extends Controller{
|
|
public function index(){
|
|
// 获取语言包
|
|
$lang = Lang::get();
|
|
$lang = json_encode($lang);
|
|
// 渲染参数和模板
|
|
$this->assign('lang',$lang);
|
|
return $this->fetch();
|
|
}
|
|
}
|