RE: [htmltmpl] newbie so this may be a faq

2003-11-03 Thread Ben Ausden
> > I get this error: > > HTML::Template : Attempt to set nonexistent parameter 'path' > - this parameter name doesn't match any declarations in the > template file : (die_on_bad_params => 1) at templ.pl line 6 > > please help... It's die'ing because die_on_bad_params is set, and you're pass

RE: [htmltmpl] Nested loops and __first__

2003-09-15 Thread Ben Ausden
> > I've got a __first__ that isn't acting the way I expect it... > it's always false. I'm wondering if that's happening because > I've got global_vars on and it's the inner loop of a two-loop nest. You are setting loop_context_vars, aren't you? Ben ---

RE: [htmltmpl] HTML-Template and DBI

2002-09-26 Thread Ben Ausden
> -Original Message- > From: Doc [mailto:[EMAIL PROTECTED]] > Sent: 26 September 2002 05:12 > To: Norikatsu Shigemura > Cc: [EMAIL PROTECTED] > Subject: Re: [htmltmpl] HTML-Template and DBI > > > I just realized something, doesnt fetch_array return column > values and not column names?

RE: [htmltmpl] HTML-Template and DBI

2002-09-22 Thread Ben Ausden
like: use CGI qw(:standard); print header, $template->output; Please also post the template you are using. regards, Ben > -Original Message- > From: Doc [mailto:[EMAIL PROTECTED]] > Sent: 22 September 2002 15:44 > To: Ben Ausden; [EMAIL PROTECTED] > Subject: Re: [htmlt

RE: [htmltmpl] HTML-Template and DBI

2002-09-22 Thread Ben Ausden
try this: my @rows = (); while ( my $data = $sth->fetchrow_hashref() ) { push @rows, $data; } $template->param(ROWS => \@rows); regards, Ben -Original Message- From: Doc [mailto:[EMAIL PROTECTED]] Sent: 22 September 2002 15:10 To: [EMAIL PROTECTED] Subject: [htmltmpl] HTML-Template