I defined a template variable ’mailToWebmaster’ (text)
Now I try to get the text in a snippet like this:
$mailToWebmaster = modx->getTemplateVar('mailToWebmaster');
The result is an PHP error message "document.parser.class.inc.php(705) : eval()’d code on line 5"
That means I did something wrong ?
So, how to get the value of the template variable ?