Re: [SMARTY] New version of SMARTY giving me error - what do i need to change here?
| From: | Monte Ohrt | Date: | Fri, 28 Feb 2003 15:23:46 +0000 |
| Subject: | Re: [SMARTY] New version of SMARTY giving me error - what do i need to change here? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8293@lists.php.net to get a copy of this message | ||
Try the latest CVS first, a lot of changes have been made.
Thanks
Monte
On Fri, 2003-02-28 at 04:50, Alistair Burns wrote:
> Before I upgraded SMARTY, this worked fine:
>
> {foreach from=$CutoffOrders->Orders item=order}
> {$order->user.name}
> {$order->user.email}
> {$order->order_id}
> ...
> {/foreach}
>
> $CutoffOrders->Orders is an array of objects
> and $order->user is an assoc. array of user details
>
> This all worked fine but now because of update I get this error:
>
> Fatal error: Smarty: [in <snip> line 6]: syntax error: unrecognized tag:
> $order->user.name (Smarty_Compiler.class.php, line 381)
>
>
> How should I index the data in the user array within the object?
>
> Any help would be greatly appreciated.
>
> Ally
--
Monte Ohrt <monte@ispi.net>