写点代理

This commit is contained in:
Anyon 2017-02-08 03:41:06 -05:00
parent 12e62b4f17
commit 240a9b6296
2 changed files with 8 additions and 14 deletions

View File

@ -1,12 +0,0 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: yunwuxin <448901948@qq.com>
// +----------------------------------------------------------------------
return [];

View File

@ -1,9 +1,15 @@
<?php <?php
namespace app\index\controller; namespace app\index\controller;
class Index { use think\Controller;
use think\Db;
class Index extends Controller {
public function index() { public function index() {
return '别着急,慢慢来!'; $version = Db::query('select version() as ver');
$version = array_pop($version);
$this->assign('mysql_ver', $version['ver']);
return view();
} }
} }