xPDO.addPackage
xPDO::addPackage
Adds a model package and base class path for including classes and/or maps from.
Syntax
API Docs: http://api.modxcms.com/xpdo/xPDO.html#addPackage
void addPackage ([string $pkg = ''], [string $path = ''], [string $tablePrefix = ''])
Example
Adds package 'mypackage' with a path of '/path/to/mypackage/model' and a table prefix of 'mp_' to the xPDO runtime model.
$xpdo->addPackage('mypackage','/path/to/mypackage/model/','mp_');
See Also
Suggest an edit to this page on GitHub (Requires GitHub account. Opens a new window/tab).