Created
October 7, 2016 09:59
-
-
Save sergiois/afa88e675aca16f291065d7195f94651 to your computer and use it in GitHub Desktop.
Código para recoger los parámetros de un plugin en cualquier lugar por código
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$plugin = JPluginHelper::getPlugin('my_plugin_type', 'my_plugin'); | |
// Check if plugin is enabled | |
if ($plugin) | |
{ | |
// Get plugin params | |
$pluginParams = new JRegistry($plugin->params); | |
$param1 = $pluginParams->get('param1'); | |
$param2 = $pluginParams->get('param2'); | |
$param3 = $pluginParams->get('param3'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment