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() { 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);