I've starte my Mason site. I have an autohandler that calls the *.mas
components.
Right now I have two components that set up their own $dbh database handle.
I want the auto handler to do that for me.
So at the bottom of the autohandler I made:
<%once>
my $dbh; # declare but don't assign
</%once>
<%init>
$dbh = DBI->connect("DBI:PgPP:dbname=dbname","user","pass");
</%init>
The $dbh assignemnt in the "init" block is exactly as in my sub-components
and the $dbh assignemnt has been taken out of the sub-components.
From what I read, my site should still work with the components using the
$dbh set up in the autohandler.
Any idea what I'm doing wrong?
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users