[Maypole] Accessing $dbh from within Maypole?
Simon Cozens
simon@simon-cozens.org
Tue, 2 Mar 2004 10:10:13 +0000
Dave Ranney:
> Here's one way to find it:
> $dbh = FooDB->config->{classes}->[0]->db_Main();
I sort of dislike that because it's a bit too familiar with the
internal structures.
> > Handle => $dbh, # <<<< what here?
> > LockHandle => $dbh # <<<< likewise
This looks like an authentication thing, so my initial thought of
$r->model_class->db_Main
won't do it. I'd go for Foo::User->db_Main as Dave suggests.
--
<fimmtiu> Sucks really Forth. Ugh.