srdst13 has asked for the wisdom of the Perl Monks concerning the following question:
versus this:package Catalyst::Model::CDBI::Plain; use strict; our $VERSION = '0.03'; use base qw[Class::DBI Catalyst::Base]; sub new { my ( $class, $c ) = @_; return Catalyst::Base->new( $class, $c ); } 1;
One quick and dirty Model class that I would like to use is DBIx::Simple (I know, not a model, but it works for some simple designs). Can folks suggest code for a generic DBIx::Simple Model (I have one that works and simply returns a new DBIx::Simple instance)?package Catalyst::Model::DBIC::Plain; use strict; use base qw/Catalyst::Model DBIx::Class::Schema/; use NEXT; sub new { my ( $self, $c ) = @_; $self = $self->NEXT::new($c); return $self; } 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Catalyst and component inheritance
by phaylon (Curate) on Nov 24, 2005 at 13:27 UTC |