[TYPO3-mvc] fluid paginate widget :: error: "passed argument must implement Tx_Extbase_Persistence_QueryResultInterface"

Steffen Müller typo3 at t3node.com
Thu Mar 15 18:37:21 CET 2012


Hi.

On 14.03.2012 11:30 Roland wrote:
> 
> PHP Catchable Fatal Error: Argument 1 passed to
> Tx_Fluid_ViewHelpers_Widget_PaginateViewHelper::render() must implement
> interface Tx_Extbase_Persistence_QueryResultInterface, array given in
> /var/www/gebropharma/typo3/sysext/fluid/Classes/ViewHelpers/Widget/PaginateViewHelper.php
> line 76
> 


I just ran into the same error when I tried to paginate both array items
as well as items from Tx_Extbase_Persistence_ObjectStorage.

IMHO this limitation is a bug in the Paginate widget ViewHelper.

It should be sufficient when the given $object implements Iterator.
Otherwise it is impossible to paginate other ressources than objects
from real(tm) DB queries. No external persistence supported, no
transient objects.


-- 
cheers,
Steffen

TYPO3 Blog: http://www.t3node.com/
Twitter: @t3node - http://twitter.com/t3node


More information about the TYPO3-project-typo3v4mvc mailing list