简体   繁体   中英

JModuleHelper::getModule not working?

I have tried many ways to get it working Joomla 1.7... but I get null returned, I am trying to load some module params into a plugin.

    $module = JModuleHelper::getModule('Tilte of my mod');
    $moduleParams = new JRegistry();
    $moduleParams->loadString($module->params);
    $param = $moduleParams->get('category_list'); 

Any Ideas, I have tried many diferent ways...

Thanks

尝试更多类似的方法:

$[parameter-name-in-xml-file] = $params->get('[parameter-name-in-xml-file]', 0);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM