AndyB
Well-known member
I'm creating a new add-on which I need to update a link in the header every five minutes. Because this link is always changing I would like to use the following code in a PHP file to make available in the logo_block template.
This is an example of the PHP code I would use when I extend a ControllerPublic PHP file. But I'm not sure which file I need to extend that would allow me to use this code that will be available in the logo_block template.
This tutorial by Fuhrmann:
http://xenforo.com/community/resources/how-to-create-your-own-helpers.332/
shows how to create a new helper, but I was hoping to be able to use viewParams instead.
Thank you.
PHP:
$viewParams = array(
'link' => $link
);
// add viewParams to parent params
$parent->params += $viewParams;
This is an example of the PHP code I would use when I extend a ControllerPublic PHP file. But I'm not sure which file I need to extend that would allow me to use this code that will be available in the logo_block template.
This tutorial by Fuhrmann:
http://xenforo.com/community/resources/how-to-create-your-own-helpers.332/
shows how to create a new helper, but I was hoping to be able to use viewParams instead.
Thank you.