Sorry for asking another question, but I really need an answer on this.
My module is called mod_improvedmenu. I've been experimenting a bit (I'm still learning, I need some help on this subject because it's a returning issue), and the thing is, when I do a var_dump on the $module variable, it returns an array with all the information I need.
However, when I set that $module to be mod_improvedmenu
$module = JModuleHelper::getModule('mod_improvedmenu'); var_dump($module);
It returns an empty array. It should work, but it doesn't. I also checked the database if there happens to be 2 modules with the same name, but there's not.
Do you have any idea what could be going on here?
When I do the same thing with simply mod_menu, it works just fine.