Code: Select all
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "module_file_tpl:HostedVideoAlbums;adminpanel.tpl" on line 20 "{$oneitem->$oneval}</td>" Security error: Call to dynamic object member not allowed' in D:\wamp\www\cmsms1.11b4\lib\smarty\sysplugins\smarty_internal_templatecompilerbase.php on line 656
Code: Select all
{foreach from=$itemlist item=oneitem}
{cycle values="row2,row1" assign=rowclass}
<tr class="{$rowclass}" onmouseover="this.className='{$rowclass}hover';" onmouseout="this.className='{$rowclass}';">
{foreach from=$adminshow item=column}
{assign var=oneval value=$column[1]}
<td{if $column[2]} class="ctlmm_nosearch"{/if}>
{$oneitem->$oneval}</td>
{/foreach}
</tr>
{/foreach}
All this worked perfectly in previous versions of smarty and I can't understand why it should break in new versions...
Most of my (many and sometimes big) templates use php objects in smarty so I don't want them to be broken!
Any help appreciated