load_templates

1.0 1.1 1.2 1.3

Checks whether a variable is not null

<?php
load_templates(string $file)
  • file: the resource/template name to parse for sub-templates (those are defined using {template})

Templates are only visible in the file they are loaded, so if you include another file you have to call load_templates there also.

Examples

Example #1

index.tpl
{load_templates "subtemplates.tpl"}
 
{menu $menuTree}