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']); ?>&nbsp;</td>                         <td><?php echo h($res['stat']['clicks']); ?>&nbsp;</td>                         <td><?php echo h(round($res['stat']['conversions'], 2)); ?>&nbsp;</td>                         <td><?php echo "€ " . h(round($res['stat']['payout'], 2)); ?>&nbsp;</td>                         <td><?php echo h(round($res['stat']['ltr'], 2)) . " %"; ?>&nbsp;</td>                         <td><?php echo "€ " . h(round($res['stat']['cpc'], 2)); ?>&nbsp;</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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -