mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
22 lines
456 B
PHP
22 lines
456 B
PHP
<?php
|
|
|
|
namespace app\admin\controller;
|
|
|
|
use controller\BasicAdmin;
|
|
use think\Db;
|
|
|
|
class Index extends BasicAdmin {
|
|
|
|
public function index() {
|
|
$this->assign('ptitle', '后台管理');
|
|
return view();
|
|
}
|
|
|
|
public function main() {
|
|
$version = Db::query('select version() as ver');
|
|
$version = array_pop($version);
|
|
$this->assign('mysql_ver', $version['ver']);
|
|
return view();
|
|
}
|
|
|
|
} |