xf_phantom
Well-known member
Does a way exist, to get the current called route class?
I've tried get_class($dependencies->getRouter())
but it's not showing the route class, it's just the router "XenForo_Router"
$dependencies->getRouter()->match(new Zend_Controller_Request_Http());
also returns only the result and not the route class ( e.g. XenForo_Route_Prefix_Forums )
Or is the only way to get the route class from the db with help of the current prefix?
I've tried get_class($dependencies->getRouter())
but it's not showing the route class, it's just the router "XenForo_Router"
$dependencies->getRouter()->match(new Zend_Controller_Request_Http());
also returns only the result and not the route class ( e.g. XenForo_Route_Prefix_Forums )
Or is the only way to get the route class from the db with help of the current prefix?
Last edited: