Jump to:

5537 Posts in 1737 Topics by 1223 members

Customising the CMS

SilverStripe Forums » Customising the CMS » call function in different controller

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 399 Views
  • Lens-Art
    Community Member
    4 Posts

    call function in different controller Link to this post

    I'm new to Silverstripe and I'm trying to extend an existing site, so sorry if the answer to this question is obvious.
    I'm trying to connect via TCP to an external device if an event happens.
    I've made a controller for this which is in a different php file than the one in which the event happens.

    Can I call my TCP connect function with something like controller::socketConnectController()?
    Or do I have to redirect to the controller via a director::addrules?

    Maybe the way I implement this is not rigth at all but this, is what I though would be a good solution.
    I hope it is clear what I want

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.