php - Cakephp page pagination -
i have created own datasource
collects data using api.
now trying use paginate function data. works fine getting right data there problem!
i cannot paginator identify pages. goal make sure there 50 records pr page no matter one page , links not correct links basicly text
here view:
index.ctp
<?php $this->paginator->options(array( 'update' => '#updatetable', 'evalscripts' => true, )); ?> <!-- begin example table portlet--> <div id="updatetable"> <div class="portlet box green report index"> <div class="portlet-title"> </tr> </thead> <tbody class="report_data"> <?php foreach ($table['report']['data']['data'] $res): ?> <tr> <td><?php echo h($res['offer']['name']); ?> </td> <td><?php echo h($res['stat']['clicks']); ?> </td> <td><?php echo h(round($res['stat']['conversions'], 2)); ?> </td> <td><?php echo "€ " . h(round($res['stat']['payout'], 2)); ?> </td> <td><?php echo h(round($res['stat']['ltr'], 2)) . " %"; ?> </td> <td><?php echo "€ " . h(round($res['stat']['cpc'], 2)); ?> </td> </tr> <?php endforeach; ?> </tbody> </table> <div> <div class="paging"> <?php echo $this->paginator->numbers(array('first' => 'first page')); echo $this->paginator->prev('< prev', null, null, array('class' => 'disable')); echo $this->paginator->next('next >', null, null, array('class' => 'disable')); ?> </div> </div> </div> </div> </div>
it worth mentioning using ajax paginate (if matters) worth mentioning api im using collect data support pagination have not been able find documentation on how "costumize pages" paginator
does have idea of doing wrong or know how fix issue?
Comments
Post a Comment