Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Class::DBI and mod_perl 2

by ides (Deacon)
on May 04, 2007 at 14:47 UTC ( #613584=note: print w/replies, xml ) Need Help??


in reply to Class::DBI and mod_perl 2

To get the current request object under mod_perl 2 you need to use Apache2::RequestUtil->request(). Here is a link to the docs on that.

You'll find that whole page covers everything you'll need to know to translate mod_perl 1.x code to mod_perl 2.x code.

If you haven't done so already I'd also check into DBIx::Class , personally I gave up on using Class::DBI long ago after running into all sorts of odd problems that I couldn't find easy solutions to.

Frank Wiles <frank@revsys.com>
www.revsys.com

Replies are listed 'Best First'.
Re^2: Class::DBI and mod_perl 2
by artemave (Beadle) on May 04, 2007 at 17:22 UTC
    Thank you, Frank.

    This information is really helpful.

    Artem.

    P.S. Defintely, I've looked through RequestUtil methods couple of times, but failed to notice what I need. Thanx again.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://613584]
help
Chatterbox?
[marto]: good morning all
[Corion]: Hi marto!
[Corion]: I hope all is well marto! ;) My godson had a surprise visit to the hospital yesterday because he fell and had cut his skin besides his eye, but everything was glued together again and all is well

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2016-12-08 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (137 votes). Check out past polls.