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

Not a Bug Can not extend XenForo_ControllerAdmin_Admin

Discussion in 'Resolved Bug Reports' started by tenants, Jun 7, 2014.

  1. tenants

    tenants Well-Known Member

    I wasn't sure to raise this as a bug, since it's not visible to the front end users (and could also be considered an enhancement for plugin developers and not a bug)

    Using load_class_controller
    for the url example.com/admin.php no class is dumped for the following listener:

    public static function listenController($class, array &$extend)
    This means for plugins developers, its not possible to extend the ACP initial page

    For plugin developers, there are reasons that you might want to override this 1st page (and not just the XenForo_ControllerAdmin_Login)
    Last edited: Jun 7, 2014
  2. Liam W

    Liam W Well-Known Member

    I thought the main admin page was XenForo_ControllerAdmin_Home?

    EDIT: Yeah, /admin.php is XenForo_ControllerAdmin_Home

    XenForo_ControllerAdmin_Admin is for /admin.php?admins
  3. rellect

    rellect Well-Known Member

    Working fine for me. Make sure your event listener is configured correctly. It could be just disabled and you didn't notice, or you have set a wrong hint.
  4. tenants

    tenants Well-Known Member

    You are both right (blue on black is hard to see)

    But yes, the classes are there when dumping out:
    string(28) "XenForo_ControllerAdmin_Home" string(29) "XenForo_ControllerAdmin_Login"

    It's actionForm of XenForo_ControllerAdmin_Login I need to use

    This can be closed

    Not A Bug
    Last edited: Jun 7, 2014
  5. Liam W

    Liam W Well-Known Member

    The first thing I notice is that you're extending yourself...

    Unless that's an issue when copied, and not present in the actual code...
  6. tenants

    tenants Well-Known Member

    Not a bug... just blue/black blindness and long day :oops: thanks

Share This Page