Mark Stosberg wrote:
Robert Hicks wrote:
I want to turn:
loop_context_vars => 1
die_on_bad_params=> 0
ON, for all templates.
Can I put something in the cgiapp_prerun that does this?
Yes. See the docs for "The load_tmpl() callback".
It allows you to do just that.
Is this sufficient or is there a better way? I wasn't sure how to do a
callback so I GOOGLED and looked through a couple things:
sub load_tmpl {
my ($self, $tmpl_file, @extra_params) = @_;
push @extra_params, "die_on_bad_params", "0";
push @extra_params, "loop_context_vars", "1",
push @extra_params, "global_vars", "1",
#push @extra_params, "file_cache", "1";
return $self->SUPER::load_tmpl($tmpl_file, @extra_params);
}
Robert
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]