joomla3.0

What is the replacement for the JParameter class in Joomla 3?


I have used the following code in Joomla 3.0 for getting plugin parameters.

new JParameter($plugin->params);

But I am getting error indicating that the class doesn't exist. What is the replacement?


Solution

  • As JParameter was using JRegistry, here is a work around:

    $params = new JRegistry();
    $params->loadString($module->params);
    
    $params->get('param_name');