ASap
Active member
[Hello!] everyone..
I tried to include a php on my footer template.
Following steps from:
Here's what I created in library/test/footer.php
And then I used this on my footer template:
But it doesn't work.
It returns me:
What mistake could I've done here?
Any solution would be appreciated.
Thank you
I tried to include a php on my footer template.
Following steps from:
Code:
https://xenforo.com/community/threads/provide-the-ability-to-call-a-php-file-directly-from-template.47825/
Here's what I created in library/test/footer.php
Code:
<?php
class footinc {
public static function getHtml(){
include '/home/web/public_html/library/test/123.php';
}
}
And then I used this on my footer template:
Code:
<xen:callback class="footinc" method="getHtml"></xen:callback>
But it doesn't work.
It returns me:
Code:
Could not execute callback footinc::getHtml() - Not callable.
What mistake could I've done here?
Any solution would be appreciated.
Thank you