Re: pnotes

[prev] [thread] [next] [Date index for 2004/11/24]

From: Stas Bekman
Subject: Re: pnotes
Date: 20:29 on 24 Nov 2004
Arshavir Grigorian wrote:
> Hello list,
> 
> I have module called Application which handles all the requests to the 
> site (except for images, etc) and then dispatches the request to a 
> different module based on the $r->path_info().
> 
> I am thinking about creating a Template Toolkit object and a DBI handle 
> in Application::handler() and storing it in the request object's 
> pnotes() before dispatching the request. The other modules that do the 
> actual work, will then get those 2 "handles" from the request object 
> which is passed to them anyways. Are there any problems with this approach?

That should work.

(in this particular case it should be the same for any modperl generation, 
but in the future don't forget to explicitly specify which mp version you 
are using. thanks)

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

pnotes
Arshavir Grigorian 19:54 on 24 Nov 2004

Re: pnotes
Stas Bekman 20:29 on 24 Nov 2004

Re: pnotes
Arshavir Grigorian 21:34 on 24 Nov 2004

Re: pnotes
Bart Simpson 06:51 on 01 Dec 2004

Re: pnotes
Perrin Harkins 15:07 on 01 Dec 2004

Re: pnotes
Arshavir Grigorian 21:31 on 08 Dec 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52