[Catalyst] schema

Robert 'phaylon' Sedlacek rs at 474.at
Sun Dec 24 16:14:16 GMT 2006


Octavian Rasnita said:

> I need to access the same database in more controller modules, using the
> following line in every subroutine and every module:
>
> my $schema = $c->model('DB');
>
> Is it possible to define it only in one place and make it available in the
> entire application?

Sorry, I don't get it. $c->model() *is* available in the entire application.

-- 
# Robert 'phaylon' Sedlacek
# Perl 5/Catalyst Developer in Hamburg, Germany
{ EMail => ' rs at 474.at ', Web => ' http://474.at ' }




More information about the Catalyst mailing list