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

Lack of interest Allow access to XenForo_ControllerAdmin in installer

Jake B.

Well-known member
#1
Sometimes it would be nice if I had access to show some options during installation/upgrade of an Add-on and there is no easy way that I'm aware of to do this other than having the add-on installer just install a route for the 'actual' installer which would just cause more confusion. Don't know if this makes sense, but it'd be nice :)
 

Chris D

XenForo developer
Staff member
#2
You can redirect to a specific page after the install has completed.

PHP:
XenForo_Application::set('addOnRedirect', XenForo_Link::buildAdminLink('any/page/you/want'));
Not exactly the same, but can be useful if you want to direct users to a specific task to complete after the install has finished.
 

Jake B.

Well-known member
#3
That will accomplish what I want though! Never knew this was a thing, XF really needs documentation for these kinds of things :p. It isn't very often that I go digging through the Add-on installer controller ;)
 

Chris D

XenForo developer
Staff member
#5
After. Not sure what use it would be before :)

See XenForo_ControllerAdmin_AddOn::actionInstall() by the way, that's where it all happens. Ignore the comments about it being an ugly hack ;)