$database->connect()
Connects to a database
Parameters
Name | Type | Default | Description |
---|---|---|---|
$params | array |null |
null |
This can either be a config key or an array of parameters for the connection |
Return type
PDO
|null
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |