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

Extend XenForo_ControllerAdmin_Abstract

truonglv

Formerly Nobita.Kun
#2
This is basicly. You can extends
XenForo_ControllerAdmin_Abstract without listener_extends_class
Example: Your_Addon extends XenForo_ControllerAdmin_Abstract
 

silence

Well-known member
#3
This is basicly. You can extends
XenForo_ControllerAdmin_Abstract without listener_extends_class
Example: Your_Addon extends XenForo_ControllerAdmin_Abstract
No I got that, but how come for a ControllerPublic I can extend it using the XF listener, but with ControllerPublic I can't?
 

Jeremy

Well-known member
#5
Why are you trying to inject a class for all ControllerAdmin classes? Use your listener with a very high priority (lower numbers >= larger numbers) and don't specify a class and just always add to $extend, you'll end up doing what you want.
 
#7
Why are you trying to inject a class for all ControllerAdmin classes? Use your listener with a very high priority (lower numbers >= larger numbers) and don't specify a class and just always add to $extend, you'll end up doing what you want.
Thanks, it's so simply I wouldn't have thought about doing that.