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

Re: Using CGI::Ajax and CGI::Application::Plugin::DBH

by astroboy (Chaplain)
on Aug 26, 2009 at 02:28 UTC ( #791222=note: print w/replies, xml ) Need Help??


in reply to Using CGI::Ajax and CGI::Application::Plugin::DBH

You should make BUILD_CHART a run mode, All access from the web, whether via Ajax or not, should be via a run mode. BTW, I usually put my dbh connection calls in the cgiapp_init method, because I consider it part of the application initialisation. If you have a base class for all of your controller packages, you can put it in there, and it will be accessible to all of the controller runmode methods, including BUILD_CHART
  • Comment on Re: Using CGI::Ajax and CGI::Application::Plugin::DBH

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://791222]
help
Chatterbox?
[LanX]: ehm ... nope ... a PM discussion not a meditation
[LanX]: I spend too much time in this alsmhouse ... cheers o/
[Discipulus]: what articular point of view.. i intrepreted the only question mark as rethoric.. but i'm strange

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2017-11-23 20:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (337 votes). Check out past polls.

    Notices?