$plugin = Phpfox_Plugin::get('myplugin'); $plugin->callback('myfunction');
$plugin = Phpfox_Plugin::get('myplugin'); $plugin->addTemplate('mytemplate', 'myvars');This example retrieves a plugin instance named 'myplugin' and adds a template named 'mytemplate' with variables 'myvars'. These examples are using the Phpfox library package.