Skip to content

Kirby 3.5.7.1

Db::connect()

(Re)connect the database

Db::connect(array $params = null): Kirby\Database\Database

Parameters

Name Type Default Description
$params array null Pass [] to use the default params from the config,
don't pass any argument to get the current connection

Return type

Kirby\Database\Database

Parent class

Kirby\Database\Db