0

I have a custom Joomla module. In the helper.php class, I need to pass XML field data.

Here is what I have so far.

class modcatbanerHelper {

    // I need to pass here 
    public $selected_cat = $params->get('title');

    public static function moduleCats($data)
    {
       #or pass here...
    }

}
0

You can pass in your helper's methods the $params as a parameter.

public static function moduleCats($params)
{
   $title = $params->get('title');
}

Then when you call the method from your mod_module.php:

modcatbanerHelper::moduleCats($params);
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.