• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 Extending route builder callback...

Liam W

Well-known member
#1
I'm currently trying to make an add-on to change how the category page system work, so that it only applies to certain categories.

However, in XF2, you've done away with route classes and now only have a callback. Is there a way to change that callback during execution?

Liam
 

Xon

Well-known member
#2
It looks like you can extend XF\Mvc\Router and also hook the event router_public_setup for this.

(router_admin_setup doesn't look to exist)