Hello,
I want to limit my db data on CakePhp. It can be limited with find command but I don't know is it possible to limit with my usage. Here is my code from posts_controller.php file:
function index() {
$this->Post->order = array('order'=>'Post.date DESC','limit'=>5);
$this->Post->recursive = 0;
$this->set('posts', $this->paginate());
}