private function statusZeroMQServer() { if (!$this->_isSiteAdmin()) { throw new MethodNotAllowedException(); } App::uses('PubSubTool', 'Tools'); $pubSubTool = new PubSubTool(); $result = $pubSubTool->statusCheck(); if (!empty($result)) { $this->set('events', $result['publishCount']); $this->set('time', date('Y/m/d H:i:s', $result['timestamp'])); $this->set('time2', date('Y/m/d H:i:s', $result['timestampSettings'])); } $this->render('ajax/zeromqstatus'); }
public function statusZeroMQServer() { App::uses('PubSubTool', 'Tools'); $pubSubTool = new PubSubTool(); $result = $pubSubTool->statusCheck(); if (!empty($result)) { $this->set('events', $result['publishCount']); $this->set('time', date('Y/m/d H:i:s', $result['timestamp'])); $this->set('time2', date('Y/m/d H:i:s', $result['timestampSettings'])); } $this->render('ajax/zeromqstatus'); }