Catatlyst code in Controller:
$c->stash->{stuff} = [
$c->model('DB::Blah')->search(
{},
{ select => ['data', { count => 'data' }], group_by =>
['data '] }
)
];
DataDumper Info:
'MyApp::Model::DB::Blah' ),
bless( {
'_source_handle' => bless( {
'source_moniker' => 'Blah',
'schema' => $VAR1->[0]{'_source_handle'}{'schema'}
}, 'DBIx::Class::ResultSourceHandle' ),
'_in_storage' => 1,
'_column_data' => {
'HASH(0x227bc00)' => '59', <--I need to access this value from the
template
'data' => '1000'
}
}, 'MyApp::Model::DB::Blah' ),
bless( {
'_source_handle' => bless( {
'source_moniker' => 'Blah',
'schema' => $VAR1->[0]{'_source_handle'}{'schema'}
}, 'DBIx::Class::ResultSourceHandle' ),
'_in_storage' => 1,
'_column_data' => {
'HASH(0x227bc00)' => '71', <--I need to access this value from the
template
'data' => '2000'
}
Template Info:
[% FOREACH s IN stuff %]
<tr>
<td>[% s.data %]</td>
<td>[% s.? %]</td> <-- I am not sure how to access this value in the
template
</tr>
[% END %]
I can access data scalar just fine, but am not sure how to handle the
HASH.
Jonathan
_______________________________________________
kc mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/kc