我試圖做CakePHP的定製進行分頁設置的條件,事情是,我想通過自定義的條件,這樣的事情:爲分頁
$conditions['People'] = $this->People->find('all',
array(
'order' => array('People.id DESC'),
'limit' => 16,
'order' => 'People.id DESC'
)
);
$people = $this->paginate('People',$conditions);
這基本上是所有涉及分頁的代碼,但它它不會工作,它會引起它找不到列人...
我只想做自定義條件的分頁,也就是說,我想事先設置條件,有沒有辦法做那?
好吧。很高興聽到你有它的工作。 –