setTemplateBlockSymbol

setTemplateBlockSymbol

BASIC / ADVANCED / PREMIUM

Sets the string used to identify block variables within a given template.

Description
public setTemplateBlockSymbol (string templateSymbol)

By default the phpdocx template variables have to begin by 'BLOCK_'.

You can change that string by any other you wish with the help of this method.

Parameters

templateBlockSymbol

The string you want to use for identifying block variables within templates.

Code samples

Example #1