0

I'm trying to include a PHP file in XenForo template , I think my params are wrong but anyway , it just doesn't output if I put {$varhere}. Can anyone help? My code: Class: http://codepad.org/BaImQd1O Listener: http://codepad.org/KrNxaN4z My question is , what params I need to make it work in the template I need?

4

1 回答 1

0

在设置新的 params 变量后尝试将其设置为模板。所以...

$params = $template->getParams();
$params += $hookParams;
// Set in the template
$template->setParams($params);
于 2012-11-08T04:41:21.840 回答