/** * Search request for existing patient is handled over here */ public function searchAction() { $tag = $this->_request->getParam('tag', 0); $pat_obj = new Application_Model_Patient(); $result = $pat_obj->search($tag); header('Content-type: application/json'); echo json_encode($result); die; }