0
有誰知道我可以如何將Zend分頁與Shanty-Mongo適配器集成?Shanty-Mongo和Zend_Paginator
https://github.com/coen-hyde/Shanty-Mongo
這是我下面的頁面上找到的片段,但不知道什麼$遊標變量引用:
$adapter = new Shanty_Paginator_Adapter_Mongo(Shanty_Mongo_Iterator_Cursor $cursor);
$paginator = new Zend_Paginator($adapter);
https://github.com/coen-hyde/Shanty-Mongo/pull/18
請問你爲什麼要在第一行添加限制(24)? – Oleg
您是否需要在第一行使用限制和跳過? – Oleg
這實際上不屬於那裏的一般用例。不過,我的意圖是限制進入分頁器的項目總數,它實際上並沒有工作。我會編輯我的答案。 – VinnyD