Skip to content

Kirby 3.6.0

$database->connect()

Connects to a database

$database->connect(array $params = null): PDO|null

Parameters

Name Type Default Description
$params array null This can either be a config key or an array of parameters for the connection

Return type

PDO|null

Exceptions

Parent class

Kirby\Database\Database