Php 中的分页问题

Php 中的分页问题,php,cakephp,cakephp-1.3,Php,Cakephp,Cakephp 1.3,如何使用分页进行排序。。如何设置一个限制也 我的代码是:- 在控制器中:- $this->paginate('ProductZone'); 鉴于ctp:- <th><?php echo $this->Paginator->sort('TDU','ProductZone.zone_id'); ?> </th> <th><?php echo $this->Paginator->sort('

如何使用分页进行排序。。如何设置一个限制也

我的代码是:-

在控制器中:-

 $this->paginate('ProductZone');
鉴于ctp:-

<th><?php echo $this->Paginator->sort('TDU','ProductZone.zone_id'); ?> </th>
            <th><?php echo $this->Paginator->sort('Energy Charge','ProductZone.energy_charge'); ?></th>
            <th>500 KwH(&#162;/kWh)</th>
            <th>1000 KwH(&#162;/kWh)</th>
            <th>2000 KwH(&#162;/kWh)</th>
            <th>Plan Desc</th>

500千瓦时(¢;/KwH)
1000千瓦时(¢;/KwH)
2000千瓦时(162千瓦时)
计划说明

您可以使用paginate属性设置分页方法设置

$this->paginate = array(
    'ProductZone' => array(
        'conditions' => array(
            'ProductZone.active' => true,
            'ProductZone.id' => 10,
        ),
        'order' => 'ProductZone.created DESC',
        'limit' => 10
    )
);
$product_zones = $this->paginate('ProductZone');
$this->set(compact('product_zones'));

谢谢你的帮助,但是。。。我想设定更多的价值,因为我在这方面面临问题。。