public function faqdetailsAction() { $request = $this->getRequest(); if ($request->isPost()) { $common = new Common(); $id = $request->getPost('id'); $user_type = $request->getPost('user_type'); $api_url = $this->getServiceLocator()->get('config')['api_url']['value']; $faqs = $common->getFaqs($api_url, $user_type, $id, 'single'); echo json_encode($faqs); } exit; }