Setting variables

This is the most easy part: Just use setVar() with the variable name and its new value. An optional third boolean parameter tells if the value should be appended to the existing value (defaults to false).

Setting a variable

<?php
$t
->setVar('AUTHOR_NAME''Christian Weiske');
?>

Variables set influence all variables in the template, no matter if they are defined within a block or not.

Defining blocks (Previous) Parsing blocks (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.