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: http://api.modxcms.com/xpdo/xPDO.html#connect

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

Example

$xpdo->connect();

See Also