Can't insert variables in templates
cosmin 269
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Can't insert variables in templates
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
The PHP parser found the following syntax error in the template:
Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/cleahost/public_html/forex/classes/class_templates.php(90) : eval()'d code on line 6
Happens whenever I try to add a variable and with any template.
I got this with
{$insert[''site_block_1'']}
{$insert[''site_block_2'']}
{$insert[''site_block_3'']}
The proper syntax is:
{$insert['site_block_1']}
{$insert['site_block_2']}
{$insert['site_block_3']}
1 Re: Can't insert variables in templates
cosmin
OP
269
From: -
From: -
More specifically, this happens when I try to save any template, after one of contentteller's variables was added. Please don't leave me hanging too long with this, I've already spent two days redoing the design because I thought there was something wrong with my sql backups of the template. Happy Easter!
Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/cleahost/public_html/forex/classes/class_templates.php(90) : eval()'d code on line 6
Happens whenever I try to add a variable and with any template.
I got this with
and with
This happens even with the default template. This goes beyond fixing a mistyped sql table, so I can't fix it on my own.