[cgiapp] Re: Proper Way To Load Template Params

Mike Tonks fluffymike at googlemail.com
Wed Mar 25 10:44:25 EDT 2009


I do it like this:

my $row = $self->dbh->selectrow_hashref('SELECT age, day FROM table
WHERE id = ?', { }, $self->session->param('cell')->{'sid'} );

$template->param(
  TITLE => "Page Title",
  %$row,
);


mike


More information about the cgiapp mailing list