|
Posted by joe on March 13, 2008, 6:07 am
Please log in for more thread options Thanks, Makes sense. I was going over the tutorial and the template
did not have HEADINGS anywhere.
On Mar 11, 11:09 am, "J. Gleixner" <glex_no-s...@qwest-spam-
no.invalid> wrote:
> joe wrote:
> > Hello, I am lerning the html template module and I keep get an error
> > on this line
>
> > $template->param(HEADINGS=>\@headings);
>
> > HTML::Template->output() : fatal error in loop output :
> > HTML::Template : Attempt to set nonexistent parameter 'heading' - this
> > parameter name doesn't match any declarations in the template file :
> > (die_on_bad_params => 1) at /usr/lib/perl5/site_perl/5.8.0/HTML/
> > Template.pm line 2997
> > at ./one.cgi line 60
>
> > It looks like HEADINGS is not part of html::template any ideas on
> > which module has setting? or is it obsolete?
>
> HTML::Template
>
> Why do you think there is a default variable of HEADINGS?
>
> You have to defined it in your template.
>
> The error is saying that you have a template variable 'heading',
> that you're not setting. You can either set it to '', or read
> the documentation to learn how to use 'die_on_bad_params'.
|