Wednesday, March 16, 2016

Load Joomla Plugin Parameters Externally

You can use the following code to get specified plugin params from within any php file.

<?php
$plugin = JPluginHelper::getPlugin('plugin_type', 'pluginname');
 
if ($plugin)
{
    $plugParams = new JRegistry($plugin->params);
    $someparam = $plugParams->get('someparam ');
}
?>

0 comments:

Post a Comment