xPDO.connect

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

Suggest an edit to this page on GitHub (Requires GitHub account. Opens a new window/tab) or become an editor of the MODX Documentation.