Jump to content
Sign in to follow this  
opalepatrick

Access module within a module

Recommended Posts

Is it possible to access a modules output from within another module. I am trying to access Formbuilder output in a function for a sales admin module that I am building. Any how-to's or pointers appreciated.

Share this post


Link to post
Share on other sites

Hi @opalepatrick, your can load your module anywhere and then call one of its methods:

$myModule = $modules->get('MyGreatModule');
$myModule->greatRender(); //call whatever method of the module

It's probably helpful to have a look at $modules API to get more details. Also this forum post could be useful:

 

Share this post


Link to post
Share on other sites

Thank you both, I have now got something to work with. @dragan it is my own custom PW module that I wanted to access output from Formbuilder. I just couldn't work out a method. I will go and do some more work.

Share this post


Link to post
Share on other sites

Hey @opalepatrick – just a heads-up that I'm moving this thread to the Module/Plugin Development area. The main "Modules" area is only intended for support threads of existing modules.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...