FAQ

On Tue, May 18, 2010 at 8:23 PM, wrote:
Couldn't load class (Info::Search) because: Couldn't instantiate component "Info::Search::Model::DBIx", "Attribute (schema_class) is required at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Class/MOP/Class.pm line 364
Hi Sachin,

it sounds like you have Info::Search::Model::DBIx which is extending
Catalyst::Model::DBIC::Schema something like this?

package Info::Search::Model::DBIx;
use Moose;
extends 'Catalyst::Model::DBIC::Schema';

__END__

but you haven't configured schema_class.

you can either add config code to Info::Search::Model::DBIx:

__PACKAGE__->config(
schema_class => 'Your::DB::Schema::Class',
connect_info => [
'dbi:mysql:dbase_name',
'username',
'password',
],
);

or to your config file:

Model::DB:
schema_class: Your::DB::Schema::Class
connect_info:
- dbi:mysql:dbase_name
- username
- password



--
Jason Galea
Web Developer

www.eightdegrees.com.au

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedMay 18, '10 at 10:23a
activeMay 19, '10 at 3:22a
posts2
users2
websitecatalystframework.org
irc#catalyst

2 users in discussion

Svijay: 1 post Jason Galea: 1 post

People

Translate

site design / logo © 2022 Grokbase