public function ajaxSendContactsFormAction() { $this->_helper->Ajax->disableLayout($this); $data = json_decode($this->_getParam('json', ''), true); $array = $this->_contacts->insertContactLog($data); echo json_encode($array); }