Added the list of distinct monitors to the monitors variable for later use with filtering

This commit is contained in:
Kyle Johnson 2013-05-06 08:40:25 -04:00
parent d4b0d05366
commit b6bf96b701
1 changed files with 2 additions and 1 deletions

View File

@ -12,9 +12,10 @@ class EventsController extends AppController {
public function index() {
# $this->set('events', $this->Event->find('all', array('limit' => 1000)));
$data = $this->paginate('Event');
$this->set('events', $data);
$options = array('fields' => array('DISTINCT Monitor.Id'));
$this->set('monitors', $this->Event->Monitor->Find('all', $options));
}
public function view($id = null) {