I am in a third-party component (payplans), it has a dashboard and I want to output some modules using:
$gantry->displayModules('sidebar-dashboard','standard','standard');
How do I get access to the gantry variable? I tried using the global keyword. I also tried:
require_once('/var/www/ipnotme/templates/ipnotmetheme/lib/gantry/gantry.php');
$gantry->init();
but really, gantry should already be initialized. I am using a RocketTheme theme. I am on Joomla 2.5.11 and latest Gantry.
I am getting the null object error:
Fatal error: Call to a member function displayModules() on a non-object in /var/www/ipnotme/components/com_payplans/templates/default/dashboard/default_template_action.php on line 82
Thanks in advance for the help. I am thinking this is something simple!
My function:
$mymy = function() {
global $gantry;
return $gantry->displayModules('sidebar-dashboard','standard','standard');
};
I personally have no idea how to achieve that so I have posted a link to the thread for someone in the dev team to take a look.
Thanks for your patience
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information