[FLOW3-general] Problems with Paginate widget
Matthias Habegger
theis_mh at gmx.ch
Tue Nov 29 13:06:49 CET 2011
Hi there,
I'm struggling with the same problem.
I have a controller called "BookController" with an action method called
"searchAction" without any parameters.
--
public function searchAction() {
$this->view->assign('books', $this->bookRepository->findAll());
}
--
To call this action I use the URL
"http://dev.library.local/habex.library/book/search"
The template looks like this (shortened ;-) ):
--
<f:widget.paginate objects="{books}" as="paginatedBooks"
configuration="{itemsPerPage: 3}">
<f:for each="{paginatedBooks}" as="book">
{book.title}
</f:for>
</f:widget.paginate>
--
I studied the blog example and the other example that Bernhard postet,
but I couldn't get it work.
I don't have any routes configured yet.
How should the Route looks like?
Thanks,
Matthias
Am 24.11.2011 13:23, schrieb Bernhard Fischer:
> Hi Ivan,
>
> you have to introduce the pagination routes inside your global Routes.yaml
> based on the blog example my routing for the pagination widget worked
> very well. It has been hard to guess for me, to get the proper paging
> url. Didn't find any docu outside the viewhelper.
>
> -Bernhard
>
>
> On 11/24/2011 01:05 PM, Ivan Ruiz Gallego wrote:
>> Hello,
>>
>> I've tried to use the pagination widget as documented, but I get the
>> following error message:
>>
>> Could not resolve a route and its corresponding URI for the given
>> parameters. This may be due to referring to a not existing package /
>> controller / action while building a link or URI. Refer to log and check
>> the backtrace for more details.
>>
>> I've taken a look at the system log and, yes, both controller and
>> package are empty. But, where do I have to tell that to the widget?
>>
>> Thanks,
>> Ivan.
>> _______________________________________________
>> FLOW3-general mailing list
>> FLOW3-general at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
More information about the FLOW3-general
mailing list