Minor indenting, and added an empty placeholder $conditions array.
This commit is contained in:
parent
545826b55c
commit
d5e60e8b78
|
@ -7,13 +7,15 @@ class EventsController extends AppController {
|
||||||
public function index() {
|
public function index() {
|
||||||
$this->loadModel('Monitor');
|
$this->loadModel('Monitor');
|
||||||
$this->loadModel('Config');
|
$this->loadModel('Config');
|
||||||
|
$conditions = array();
|
||||||
|
|
||||||
$events_per_page = Configure::read('ZM_WEB_EVENTS_PER_PAGE');
|
$events_per_page = Configure::read('ZM_WEB_EVENTS_PER_PAGE');
|
||||||
|
|
||||||
$this->paginate = array(
|
$this->paginate = array(
|
||||||
'fields' => array('Event.Name', 'Event.Length', 'Event.MonitorId', 'Event.Id', 'Monitor.Name'),
|
'fields' => array('Event.Name', 'Event.Length', 'Event.MonitorId', 'Event.Id', 'Monitor.Name'),
|
||||||
'limit' => $events_per_page,
|
'limit' => $events_per_page,
|
||||||
'order' => array( 'Event.Id' => 'asc')
|
'order' => array( 'Event.Id' => 'asc'),
|
||||||
|
'conditions' => $conditions
|
||||||
);
|
);
|
||||||
$data = $this->paginate('Event');
|
$data = $this->paginate('Event');
|
||||||
$this->set('events', $data);
|
$this->set('events', $data);
|
||||||
|
|
Loading…
Reference in New Issue