pagination in module action
pagination in module action
Can someone point me in a direction of a current module that implements pagination for frontend, or more specifically: I'm trying to integrate pagination with the Holidays module and its HolidaysQuery class. Thanks.
Re: pagination in module action
News module? action.default.php for example
Re: pagination in module action
the holiday module uses News (or cgblog) seem to do all the sql stuff inside the action.default file. can pagination be achieved with the above class? assuming that such a query class is best practice? i could just scrap the Holiday approach and clone the News approach, but that would be leaving the path of the tutorial before i even completed it. but I'm not clever enough to combine the two approaches.
Code: Select all
$query = new HolidayQuery(array('published'=>1,'limit'=>$limit));
$holidays = $query->GetMatches();