As Service Layer
In addition to PDO, xPDO can wrap other objects you may want to work with alongside your model.
For example, you could load smarty as an object that you can call directly from your xPDO instance:
if ($className= $xpdo->loadClass('Smarty','/path/to/smarty/smarty.class.php', false, true)) { $xpdo->smarty= & new $className ($xpdo); } $xpdo->smarty->someFunc();
Suggest an edit to this page on GitHub (Requires GitHub account. Opens a new window/tab).