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:[EMAIL PROTECTED] 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