Re: [htmltmpl] HTML Template - fatal error in loop output
Brought to you by:
samtregar
From: Senthil N. <rs...@gm...> - 2005-11-10 12:57:40
|
Hi Roger, Thanks. That works now. This is how I did it, foreach $instance(@diagnosis) { my %row =3D ( line =3D> $instance ); push(@diag, \%row); } $template->param(dign_loop =3D> \@diag); So, Can't we directly pass an array to the template????? Thanks rsennat On 11/10/05, Roger Burton West <ro...@fi...> wrote: > > On Thu, Nov 10, 2005 at 05:57:51PM +0530, Senthil Nathan wrote: > > >HTML::Template->output() : fatal error in loop output : HTML::Template : > >Attempt to get nonexistent parameter 'one' - this parameter name > >doesn'tmatch any declarations in the template file : > >(die_on_bad_params set =3D> 1) > >at /usr/cisco/packages/perl/perl-5.8.6 > /lib/site_perl/5.8.6/HTML/Template.pm > >line 2962 at hiGuiResultsBrowser.pm line 334 > > > >Please help me to resolve this. > > I recommend that you reread the documentation, specifically on the > structure of hashes in loops needed by the TMPL_LOOP construct. Hint: > you need a structure of hashes in loops. > > Roger > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Html-template-users mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/html-template-users > |