I am trying to select the recent entries(last 5 entries in the table) and display on the website,right now I am not sure how I can do that.
here is my resultset:
my $searchResult = $c->model( 'GuestBook::Entry' )->search(
{
entry=>{ '>=' => 2 }
},
{
join => [qw/entry_tag_joins/],
}
);
$c->stash->{ tagged_entries } = $searchResult;
here is my resultset:
my $searchResult = $c->model( 'GuestBook::Entry' )->search(
{
entry=>{ '>=' => 2 }
},
{
join => [qw/entry_tag_joins/],
}
);
$c->stash->{ tagged_entries } = $searchResult;