public function getYearMonthTotalPages($yearMonthId, $pageSize) { $blogList = $this->getBlogByYearMonthId($yearMonthId); $total = count($blogList); return ceil($total / $pageSize); }