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:
Template
Code:
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
Читать далее...