0

I just want to call a specific function in a component.

From the RokGallery Component in:

com_rokgallery\lib\RokGallery\Model\file.php

there is a function called &createNew that I need in a module.

Does anyone know how I can call this from my module and give them specific variables?

It's already being called in the following file on line 31:

components\com_rokgallery\lib\RokGallery\Job\Processor\import.php

I hope someone can help me ....

  • Have you tried importing the rokgallery library, then using RokGallery_Model_Slice::createNew($foo, $foo, $foo, $foo); ? – Lodder Mar 3 '15 at 17:22
  • I´m new in developing modules... How can I do this ? Did I need to do this in the module.php/.xml or helper.php ? And how can i call it.. Sorry for that tho.. – Marvin Mar 3 '15 at 17:44
  • @Lodder forgot to link u – Marvin Mar 3 '15 at 20:16
  • I would suggest in the helper.php – Lodder Mar 3 '15 at 22:21
0

You might try using a plugin called Components Anywhere by NoNumber. You can use it to load a component inside any module (or article) by adding

 {component url/of/the/component}

anywhere you want the component to be loaded.

  • Okey thanks! So I´ve my helper.php and a function called update(), how can I do this? – Marvin Mar 4 '15 at 17:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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