. . sub show_rsvp_POST :Local{ my ($self, $c) = @_; my $model = $c->model( 'RSVP' ); my $params = $c->req->params; my $rsvps = $model->srch_user_info( $params->{ 'srchuser' } ); if($individualRSVP) { $c->flash->{ 'rsvps' } = $rsvps; $c->response->redirect("show_individual_rsvp"); return; } else { $c->flash->{ 'error' } = "There are no users with with that name"; $c->response->redirect("show_rsvplist"); return; } } . . #### . . % foreach my $rsvp (@$rsvps) { % }
Name RSVP Date
<% $rsvp->name %> <% $rsvp->rsvpdate-mdy('/') %>
. . <%init> my $rsvps = $c->flash->{ 'rsvps' };