Added the list of distinct monitors to the monitors variable for later use with filtering
This commit is contained in:
parent
d4b0d05366
commit
b6bf96b701
|
@ -12,9 +12,10 @@ class EventsController extends AppController {
|
||||||
|
|
||||||
|
|
||||||
public function index() {
|
public function index() {
|
||||||
# $this->set('events', $this->Event->find('all', array('limit' => 1000)));
|
|
||||||
$data = $this->paginate('Event');
|
$data = $this->paginate('Event');
|
||||||
$this->set('events', $data);
|
$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) {
|
public function view($id = null) {
|
||||||
|
|
Loading…
Reference in New Issue