Minor indenting, and added an empty placeholder $conditions array.

This commit is contained in:
Kyle Johnson 2013-05-29 07:44:30 -04:00
parent 545826b55c
commit d5e60e8b78
1 changed files with 5 additions and 3 deletions

View File

@ -7,13 +7,15 @@ class EventsController extends AppController {
public function index() {
$this->loadModel('Monitor');
$this->loadModel('Config');
$conditions = array();
$events_per_page = Configure::read('ZM_WEB_EVENTS_PER_PAGE');
$this->paginate = array(
'fields' => array('Event.Name', 'Event.Length', 'Event.MonitorId', 'Event.Id', 'Monitor.Name'),
'limit' => $events_per_page,
'order' => array( 'Event.Id' => 'asc')
'fields' => array('Event.Name', 'Event.Length', 'Event.MonitorId', 'Event.Id', 'Monitor.Name'),
'limit' => $events_per_page,
'order' => array( 'Event.Id' => 'asc'),
'conditions' => $conditions
);
$data = $this->paginate('Event');
$this->set('events', $data);