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: Thu, 02 Oct 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.