[Catalyst] session in DB example in Catalyst book

Andreas Marienborg omega at palle.net
Sun May 11 08:04:29 BST 2008


On May 11, 2008, at 7:14 AM, Andrew wrote:

> And I'm doing everything exactly as the book states except the  
> config change of putting the database path in the YAML file - it's  
> still in the AddressDB.pm file.
>
> I looked in the DBIC.pm file which is generating the error message  
> and the method that is causing the error is below:
>
> sub session_store_model {
>    my ($c, $id) = @_;
>
>    my $dbic_class = $c->session_store_dbic_class;
>    $c->model($dbic_class, $id) or die "Couldn't find a model named  
> $dbic_class";
> }
>
> My question is where does $c->session_store_dbic_class come from?   
> Is it a class that I'm suppose to define or is it a class that is  
> suppose to be included in the DBIC module?
>
>
It is a config setting:

http://cpansearch.perl.org/~danieltwc/Catalyst-Plugin-Session-Store-DBIC-0.06/lib/Catalyst/Plugin/Session/Store/DBIC.pm#session_store_dbic_class

- andreas





More information about the Catalyst mailing list