Non-static method think\DbManager::connect() should not be called statically
namespace app\controller;use app\BaseController;use think\Db;class Index extends BaseController {	public function index($name = 'Keith', $age = 28) {	// return 'hello ' . $name . ' I\'m ' . $age;		// dump(config("database"));		try {			$res = Db::connect();			// $res = [];			dump($res);		} catch (Exception $e) {			dump($e);			echo "异常了";		}	}	public function hello($name = 'ThinkPHP6') {		return 'hello,' . $name;	}}
 
                            