[Catalyst] putting an object in the stash
Octavian Rasnita
orasnita at gmail.com
Tue Mar 13 17:28:46 GMT 2007
From: "Matt Lawrence" <matt.lawrence at ymogen.net>
> Alternatively, get_columns will return a hash (not a reference!) of the
> current row.
>
> $c->stash->{obj }= { $row->get_columns };
Oh thanks. Finally I've used
$c->stash->{obj} = $obj;
and I've modified the template, because it seems that it is a better design.
What I thought that I need was something like:
$c->stash({ $row->get_columns });
And I'm happy that I also found about this method.
> Note that this hash contains uninflated values, if you want column
> inflation you'll need to loop.
Please tell me what it means column inflation.
Thanks.
Octavian
More information about the Catalyst
mailing list