ungovernable
Active member
I use this code to display a page node with my custom PHP code:
But how can I set the page title?
I also added the title to the template, but it doesn't display
Code:
class ungovernable_page_ControllerPublic_test
{
public static function getTest(XenForo_ControllerPublic_Abstract $controller, XenForo_ControllerResponse_Abstract &$response)
{
$page_title = "not working";
$response->params['page.title'] = $page_title;
$response->params['title'] = $page_title;
$response->params['html'] = $html;
return $response;
}
}
I also added the title to the template, but it doesn't display