Hi,
I have a stdClass variable which created in PHP, I use $template->create to pass it to my template.
this is my template code :
But because $i is an object I get this error:
Fatal error: Cannot use object of type stdClass as array in ...
How Can I use stdClass in my templates?
Regards
I have a stdClass variable which created in PHP, I use $template->create to pass it to my template.
this is my template code :
PHP:
<xen:foreach loop="$data" value="$i">
{$i.name}<br>
</xen:foreach>
But because $i is an object I get this error:
Fatal error: Cannot use object of type stdClass as array in ...
How Can I use stdClass in my templates?
Regards