Hugilore111
Member
Hi
I have not worked pagination
tell me where the error
Route
Controller
template
I have not worked pagination
tell me where the error
Route
Code:
<?php
class Example_Route_Prefix_Example implements XenForo_Route_Interface
{
public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router)
{
return $router->getRouteMatch('Example_ControllerPublic_Account', 'account/example', 'forums');
}
}
Controller
Code:
$viewParams =array(
'thingsPerPage'=>50,
'page'=>5,
'totalThings'=>10
);
Code:
<xen:title>Page navigation example{xen:helper pagenumber, $page}</xen:title>
<xen:pagenav link="account/example" page="{$page}" perpage="{$thingsPerPage}" total="{$totalThings}" />
Last edited: