Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Re: Re: CGI::Application and HTML::Template interaction

by geektron (Curate)
on Jan 13, 2004 at 00:17 UTC ( [id://320822]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: CGI::Application and HTML::Template interaction
in thread CGI::Application and HTML::Template interaction

The Base class is where you would ideally put the customized load_tmpl method. This way your entire project gets the benefit of the change, but other users of CGI::Application on the system will not notice a difference.
I didn't even think of overriding other CGI::Application methods. Yes, I already have a subclass of CGI::Application for the app in question, but I hadn't gotten to the point of changing any default behaviour in methods ( because, frankly, I don't know it well enough to want to jump too far into it ). But, next time around ( and if i get a chance to refactor this project ), I'll do just that: have a customized my_load_tmpl() method that acts just like load_tmpl() with a few added fun things.
  • Comment on Re: Re: Re: Re: CGI::Application and HTML::Template interaction

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://320822]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-18 03:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found