Re: [htmltmpl] [Question] Clearing <TMPL_LOOP> content after first pass
Brought to you by:
samtregar
From: C H. <hag...@ep...> - 2004-05-21 18:12:50
|
>Surely that should be: $template->param(res => $res); Looks like that's correct, 'cause I made the change, and all is well. Sometimes it's hell being a newbie ... I guess what I just learned is that you can assign the values from a select immediately to an individual template ... I was taking the approach that I needed to assign the values to the script's "global" object in order to be able to utilize the variables in a template. ... guess that's why they call it a learning curve Thanks, Sam Carl Hagstrom At 12:52 PM 5/21/2004, Sam Tregar wrote: >On Fri, 21 May 2004, C Hagstrom wrote: > > > my $res = $sth->fetchall_arrayref({}); > > > > ................... > > > > assign it to a parameter: > > > > $q->param(res => $res); > >Surely that should be: > > $template->param(res => $res); > >There's no reason to give CGI::param() an array of hash-refs, is there? > >-sam C. Hagstrom hag...@ep... |