[Catalyst] Very Simple Question

Amiri Barksdale amiribarksdale at gmail.com
Mon Nov 17 16:45:22 GMT 2008

I am a new user of Catalyst, and from reading the documents and  
reading blogs posts I have been able to set up my schema, my authz/ 
authen, sessions, and my Mason view. I have a very simple question,  

This in a controller

$c->stash->{elements} = [$c->model('DB::Elements')->all];

Requires this in a view:

<% $element->{_column_data}->{title} %>

Is there a more transparent way to use DBIC so that I don't have this  
intermediate hash ref in the middle of my object? I'd like to be able  
to do

<% $element->{title} %>

It seems like TT does this automatically?


More information about the Catalyst mailing list