Attachments paginating 5000 at a time

This commit is contained in:
Karl Cordes 2013-04-04 22:06:16 +11:00
parent 59090dc452
commit 63192c5c39

View file

@ -4,6 +4,14 @@ class AttachmentsController extends AppController {
var $name = 'Attachments';
var $helpers = array('Html', 'Form','Number','Time');
var $paginate = array(
'contain' => false,
'limit' => 5000,
);
function index() {
$this->Attachment->recursive = 1;
$this->set('attachments', $this->paginate());