[Templates] catalyst + dbic + tt

Jess Robinson castaway at desert-island.me.uk
Mon Oct 29 14:08:26 GMT 2007


On Fri, 26 Oct 2007, jagdish eashwar wrote:

> Hi,
> I am trying out things with catalyst, dbic and tt. In pure dbi, i can get
> the column names and the column values in a hash by using
> 'fetchrow_hashref'. In the tt adaptation of dbi, i get the same result by
> using 'query'. How do I do this in dbic?

You probably wanted to ask this in the catalyst or dbic lists instead, 
since it's not really a TT question.

But anyway, assuming you have a DBIx::Class::Row object in your template: 
->get_columns() returns a hash of colname/value data.

Jess



More information about the templates mailing list