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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...