News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

How SMF sets the order to functions inside the template?

Started by ivimendoza, June 11, 2014, 03:38:50 PM

Previous topic - Next topic

ivimendoza

Hello,

When I see all the functions inside a file.template.php, I can't really understand how SMF executes it. I guess, this is kinda interpreted by the loadSubtemplates(), but I don't know how it sets the order of execution. For example, in ManageBans.template.php I see this functions: template_ban_edit(), template_ban_edit_trigger(). This functions actually defines all the HTML structure, but I don't understand how it makes the order each other. Can somebody explain me, please? Thanks.

Arantor

The code in ManageBans, in each area, sets the value of $context['sub_template'] to the one that fits the current task at hand...

Advertisement: