Attachments paginating 5000 at a time
This commit is contained in:
parent
59090dc452
commit
63192c5c39
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in a new issue