AndyB submitted a new resource:
Xen:callback tag - In Xenforo 1.2 a new tag called <xen:callback> was introduced
Read more about this resource...
Xen:callback tag - In Xenforo 1.2 a new tag called <xen:callback> was introduced
In Xenforo 1.2 a new tag called <xen:callback> was introduced. This allows calling a php file directly from a template.
Here's an example that will call a file called banner.php
1) First create an index.php file and put it in the /library/Example/Banner folder
2) Create a banner.php file
3)...
Here's an example that will call a file called banner.php
1) First create an index.php file and put it in the /library/Example/Banner folder
PHP:
<?php
class Example_Banner_index {
public static function getHtml() {
include '/home/www/banner.php';
return $output;
}
}
?>
PHP:
<?php
$output = 'Hello World';
?>