0
Welcome Guest! Login
0 items Join Now

$gantry variable not defined

  • $gantry variable not defined

    Posted 11 years 1 week ago
    • Hi,

      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');
      };
    • David Goode's Avatar
    • David Goode
    • Preeminent Rocketeer
    • Posts: 17058
    • Thanks: 890
    • Web Designer and Host

    Re: $gantry variable not defined

    Posted 11 years 3 days ago
    • Hi Colin,

      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 8)

    • 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
  • Re: $gantry variable not defined

    Posted 11 years 2 days ago
    • Thanks David, I am still looking for a solution so I appreciate getting a dev involved! Colin

Time to create page: 0.046 seconds