2017-02-08 03:41:06 -05:00

16 lines
321 B
PHP

<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
class Index extends Controller {
public function index() {
$version = Db::query('select version() as ver');
$version = array_pop($version);
$this->assign('mysql_ver', $version['ver']);
return view();
}
}