Is it possible to call a method of a plugin's controller from within a plugin? I don't plan on making a habit of this but sometimes it may be needed. Just trying to plan ahead.


  • 1
    Wouldn't it make more sense to just off-load that logic into a service, and simply make the service accessible instead?
    – Lindsey D
    Commented Mar 24, 2015 at 6:14

1 Answer 1


Something like this should work:


Although I'd question the decisions you've made to get to the point where you had to ask this question. ;)

  • Thanks. I haven't needed to do this yet and yes of course I want to avoid it. What I'm thinking is if I have a controller that does a thing, and I have zero time to refactor that process into a service, then I might as well just call the controller.
    – Matt V
    Commented Mar 24, 2015 at 12:31

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.