我在我的控制器中有一個自定義查詢,我想實現我在cakephp.org上找到的自定義查詢分頁,但他們的示例與我的類似。是否有人可以幫助我在我看來,這個分頁結果:自定義查詢分頁Cakephp
$cars = $this->Car->query(" select Car.id, Car.make, Car.model, Car.year, Car.description, CarImage.thumbnail
from cars Car
inner join car_images CarImage on Car.default_image_id = CarImage.id
where Car.make like '" . $category . "'
order by Car.created DESC
limit 10");
$this->set('cars', $cars);
我希望爲使用PAGINATE功能CakePHP中 – 2009-12-05 00:35:29