Hi,
I'm trying to create a callback to get the boardtotals and active users and pass it to a view but am getting
Here my code:
What am I not doing correctly?
Thanks,
I'm trying to create a callback to get the boardtotals and active users and pass it to a view but am getting
.T_FUNCTION, expecting T_PAAMAYIM_NEKUDOTAYIM
Here my code:
PHP:
<?php
static function respond(XenForo_ControllerPublic_Abstract $controller, XenForo_ControllerResponse_Abstract, XenForo_ControllerPublic_Forum &$response)
{
$response->templateName = "_page_node.29";
$response->params['boardTotals'] = self::_getBoardTotals();
}
?>
What am I not doing correctly?
Thanks,