I am using an external to joomla script and I need to get a module's parameters.
In joomla 2.5, the code was working fine, but in j3 I have problems.
the code is:
define( '_JEXEC', 1 );
define('JPATH_BASE', getcwd().'/../../');
require_once ( JPATH_BASE.'includes/defines.php' );
require_once ( JPATH_BASE.'includes/framework.php' );
/* Create the Application */
$app = JFactory::getApplication('site');
jimport( 'joomla.application.module.helper' );
$module = &JModuleHelper::getModule( 'mod_mailformmodule');
var_dump($module);
And I get:
object(stdClass)#43 (8) {
["id"]=>
int(0)
["title"]=>
string(0) ""
["module"]=>
string(18) "mod_mailformmodule"
["position"]=>
string(0) ""
["content"]=>
string(0) ""
["showtitle"]=>
int(0)
["control"]=>
string(0) ""
["params"]=>
string(0) ""
}
If anyone has an ide why the "params" field is an empty string, I would be gratefull.
Thank you.