Jump to main content Jump to doc navigation

xPDO::connect

Creates a PDO database connection for use by xPDO. Returns true if the connection was created successfully.

Syntax

API Docs: https://api.modx.com/revolution/2.2/db_core_xpdo_xpdo.class.html#\xPDO::connect()

boolean connect ([array $driverOptions = array ()])

Example

$xpdo->connect();

See Also