Stas Bekman wrote:
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)
Thanks, Stas. I will try to be more specific next time.
Arshavir
--
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