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

From the RokGallery Component in:


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:


I hope someone can help me ....

  • Have you tried importing the rokgallery library, then using RokGallery_Model_Slice::createNew($foo, $foo, $foo, $foo); ?
    – Lodder
    Commented Mar 3, 2015 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
    Commented Mar 3, 2015 at 17:44
  • @Lodder forgot to link u
    – Marvin
    Commented Mar 3, 2015 at 20:16
  • I would suggest in the helper.php
    – Lodder
    Commented Mar 3, 2015 at 22:21

1 Answer 1


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
    Commented Mar 4, 2015 at 17:14

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.