Quote from: bS at Jun 15, 2006, 08:20 AM
...
code looks good... but variable doesn’t display?
What does your template look like?
...
No, my variable is not display.
My template is content to a variable PHP:
$tpl1='
<h3 style="text-align:center;">test tiny</h3>
[{variable}]
';
$variable='hello';
$template = $modx->tbsTpl->addTemplate($tpl1);
$modx->tbsTpl->addField($template,'variable',$variable);
$modx->tbsTpl->addBlock($template,'myarray',$myarray);
$returnstring .= $template;
I want test a plugin before going further.
Other note: if I remove the line
$modx->tbsTpl->addBlock($template,’myarray’,$myarray);, I have a fatal error, however in my code I do not have any array but I must keep this line