FindNew

Valhalla

Well-known member
Hello,

I wish my custom route to resolve to a custom controller, and for this controller to reroute the request to an existing XenForo class, which will then only be extended if it had been routed from my custom controller.

Would it be possible to:
1.) Create a custom route resolving to a custom controller.
2.) From the custom controller, reroute to a different controller (XenForo_ControllerPublic_FindNew).
3.) Create an Event Listener for 'XenForo_ControllerPublic_FindNew', and use my custom controller as my Event Hint.
4.) Use the extended class (as given in my Execute Callback method) to extend 'XenForo_ControllerPublic_FindNew'.

Ultimately, I wish to use (extend) the methods within the FindNew controller, but not have these changes in effect if they're not required; perhaps by (1) recognition of the custom route - i.e. not 'find-new', or, (2) invocation of the custom controller.

Thank you for reading.
 
Top Bottom