I have a zend paginator object, I want to get the first element in this paginator.
I tried $paginator->getItem(0)
but it returns the message:Message: Cannot seek to 0 which is below the offset 2
. And the $paginator->count() is 19.
I can achieve this by using foreach:
foreach ($paginator as $item)
{
$entry = $item;
}
How can I get this by not using foreach?