Heisenberg submitted a new resource:
You must be registered for see links
- How to create variables that can be accessed in all templatesThis is a simple example about how to create variables that can be accessed in all templates.
This code uses "template_create" listener.
On this code, 2 variables are created, which are "$is_handsome", and "$is_fat".
Both variables are set directly within
Code:/library/Semprot/GlobalTemplateVariable/Listener.php
PHP:<?php class Semprot_GlobalTemplateVariable_Listener { public static function template_create(&$templateName, array &$params, XenForo_Template_Abstract...
You must be registered for see links
Last edited: