On Mon, Apr 14, 2008 at 07:38:03AM -0800, Alex Teslik wrote:
>$template->param(
> OUTER_LOOP => [
> { OUTER_VAR => 'I AM THE OUTER VAR' },
> { INNER_LOOP => [
> { INNER_VAR => 'I AM THE
>INNER VAR' },
> ]
> },
> ],
> );
Your data structure is wrong.
Each entry in the OUTER_LOOP list is one element in the loop. You have
two elements; the first one only sets OUTER_VAR and the second one only
contains INNER_LOOP. So you're going round the loop twice, and OUTER_VAR
is undefined the second time round. Try this (not checked):
$template->param(
OUTER_LOOP => [
{ OUTER_VAR => 'I AM THE OUTER VAR' ,
INNER_LOOP => [ { INNER_VAR => 'I AM THE
INNER VAR' },
]
},
],
);
Roger
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Html-template-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/html-template-users