Will Smith scribbled on 4/12/07 11:43 AM:
I have the following piece of code:
# in controller
...
while ( my $row = $file->read ) {
push @record, {
id => $row->{id},
name => $row->{name},
};
}
$c->stash->{recs} = @records;
.....
What is the syntax on the tt2 to access the id and name?
Or please point me to somewhere that I could do some reading on the question.
you want:
$c->stash->{recs} = [EMAIL PROTECTED];
and then in tt:
[% FOR rec IN recs;
rec.id;
rec.name;
END %]
--
Peter Karman . http://peknet.com/ . [EMAIL PROTECTED]
_______________________________________________
List: [EMAIL PROTECTED]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/