1
나는 내 indexController에 Zend Paginator를 만들었습니다. 프론트 엔드에는 페이지 당 20 개의 카테고리가 나열되어 있지만 모든 기본 카테고리를 나열해야하는 드롭 다운 목록도 있습니다. 동일한 쿼리를 사용하는 방법이 있습니까? 이것은 내가 지금까지 시도한 것입니다 :Zend Paginator가 끝난 후 모든 항목을 가져 오는 방법
$query = $categories->select()
->where($status)
->where($sq)
->order($this->view->sortoptions->by . ' ' . $this->view->sortoptions->order);
$this->view->categories = $categories->paginate($query->where($cat), $this->view->LayoutSettings->pagination->itemsperpage , $page);
$this->view->categoriesall = $categories->fetchAll($query->where("parent = 0")); // we get this for the categories listing in the dropdown
** $ 상태 및 $ 평방가 매개 변수를 필터링하고 있습니다. (예를 들어, 부모 = 0)