我得到了的Zend \分頁程序\分頁程序一個錯誤,當我調用方法的getItem()
$select = $myMapper->getSqlSelect();
$resultSet = new ResultSet();
$paginatorAdapter = new DbSelect($select, $myMapper->getAdapter(), $resultSet);
$paginator = new Paginator($paginatorAdapter);
//echo get_class($paginator); Zend\Paginator\Paginator
$paginator->getItem(1, 1);
Fatal error: Cannot use object of type Zend\Db\ResultSet\ResultSet as array
一切當我由於錯誤意味着你不能使用ResultSet對象數組不要使用此方法(在視圖,控制器等)