Not a bug Can not extend XenForo_ControllerAdmin_Admin

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:

Code:
public static function listenController($class, array &$extend)
{
        var_dump($class);
}

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:
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
 
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.
 
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

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:
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...
 
Top Bottom