[RSS Feed/News] How to pass a variable to PAGE_CONTAINER template

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
In my Banner add-on, I would like to pass a variable from PHP code to the PAGE_CONTAINER template.

The goal is to display a random image in the header with a different image being display upon each page load.

For example I pass from PHP a variable to the forum_list template using this code:

PHP:

Code:
<?php

namespace Andy\Banner\XF\Pub\Controller;

use XF\Mvc\ParameterBag;

class Forum extends XFCP_Forum
{
	public function actionList(ParameterBag $params)
	{...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom