[Catalyst] CDBI Plain not inheriting table and columns

Adam Jacob adam at stalecoffee.org
Tue Aug 2 21:46:21 CEST 2005


On Aug 2, 2005, at 12:17 PM, Jonathan Manning wrote:

> Jesse Sheidlower wrote:
>
>> However, the dirty little secret of CDBI::Plain is that it really
>> does nothing at all, as a glance at the source will show--it just
>> inherits from Catalyst::Base and that's really it.
>>
>
> I had noticed that. I guess I was asking if I could even skip
> Catalyst::Base - or is this essential for a Model class?

I am doing this without Catalyst::Base.  Catalyst will load all of  
your components, including the Models.  You will not be able to do $c- 
 >forward() to your Models, however.  If that bothers you, than you  
should include Catalyst::Base, I think.

It doesn't bother me, since I prefer thinner Models and thicker  
Controllers.  YMMV.

Adam



More information about the Catalyst mailing list