Custom Page PHP Callback Not Displaying

Status
This content is read-only, or is not open for further replies.

CommanderVex

Guest
offline
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:

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

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom