→ Back to Plugin Development index
This is a proposal for a standard way to include Pear libraries in plugins, so the structure can be shared by other plugins.
<?php set_include_path(get_include_path() . PATH_SEPARATOR . $DIR_PLUGINS . 'pear');
... require_once 'Pager/Pager.php'; $pager = Pager::factory($this->pager_options); ...