CommanderVex
Member
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
Template
Node Settings
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