<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/6/006
 * Time: 13:44
 */

namespace backend\modules\admin\controllers;


class DruidController extends BaseController
{
    public function actionIndex()
    {
        return $this->renderPartial('index');
    }
    
    public function actionBasic()
    {
        $json = '{
        "ResultCode":1,
        "Content":{
            "Version":"1.0.18",
            "Drivers":["com.alibaba.druid.proxy.DruidDriver","com.mysql.jdbc.Driver"],
            "ResetEnable":true,
            "ResetCount":0,
            "JavaVMName":"Java HotSpot(TM) 64-Bit Server VM",
            "JavaVersion":"1.8.0_144",
            "JavaClassPath":"/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar",
            "StartTime":"2017-12-05 11:42:05"
            }
        }';
        return $this->renderPartial('basic', [
            'basic_json' => $json,
        ]);
    }
}