XF 2.2 Custom Page PHP Callback Not Displaying

I have created a page node and trying to use xen:callback. However, nothing is displaying and is just a blank page.

I have a created a folder called Pages in src/addons with a file called Providers.php

Providers.php
Code:
<?php
namespace Pages;
class Providers
{
    public static function getHtml()
    {
        echo 'test';
        return 'test';
    }
}

Template
Code:
<xen:callback class="Pages\Providers" method="getHtml"></xen:callback>

Node Settings
1721057275668.webp
 
Back
Top Bottom