AnimeHaxor

Retro-NulledTeam
Staff member
Moderator
Registered
Local time
11:42 PM
Joined
Nov 22, 2015
Messages
6,495
Reaction score
42,906
Points
113
Website
www.nullscripts.net
Site Script
XenForo
AnimeHaxor submitted a new resource:

Global Template Variable - How to create variables that can be accessed in all templates

This 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...

Read more about this resource...
 
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock