【发布时间】:2016-04-11 14:12:02
【问题描述】:
我应该在控制器中写什么来进行分页 这是我的索引
<?php foreach ($bien['Servicebien'] as $servicebien): ?>
<tr> <td><?php echo $servicebien['dateServiceBienDu']; ?>
<td><?php echo $servicebien['dateServiceBien']; ?></td>
<td><?php echo $servicebien['montantServiceBien']; ?></td>
</tr>
<?php endforeach; ?>
<?php unset($servicebien); ?>
</table>
<div>
<?php echo $this->Paginator->counter(array('format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}'))); ?>
Paginator->prev(' 'disabled')); echo $this->Paginator->numbers(); echo $this->Paginator->next(' Next >> ', null, null, array('class' => 'disabled')); ?>
【问题讨论】:
标签: cakephp pagination