I need to call an extension or module method from a plugin.

Anyone know how to do that?

Eventually solved with this code:

$ext = new Extensionclass();
$PI = $ext->extension_function($params);

1 Answer 1


You can do it with the following example code within your plugin:

require_once PATH_THIRD."modulename/modulefilename";
$obj = new ModuleClass();

Hope, it would help you.

  • Similar to how I eventually figure it out. Thanks.
    – MB34
    Jul 16, 2013 at 21:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.