function getAccountType() { $app = \Slim\Slim::getInstance(); $app->response->headers->set('Content-Type', 'application/json'); $app->response->setStatus(200); $account_post_val = $app->request()->params("sex"); $filed = array(HAMMU_DB_PREFRENCES_KEY, HAMMU_DB_SERVICES_KEY); $all_services_preferences = getAllQuestionsAccountType($account_post_val, array("fields" => $filed)); // print_r($all_services_preferences); // exit; $app->response->setBody(json_encode($all_services_preferences)); }
function getAccountType() { $app = \Slim\Slim::getInstance(); $app->response->headers->set('Content-Type', 'application/json'); $app->response->setStatus(200); //Lang Call Start $hammu_lang_id = $app->request()->params("lang_id"); if (!empty($hammu_lang_id)) { getCurrentLanguages($hammu_lang_id); } //Lang Call end $account_post_val = $app->request()->params("sex"); $filed = array(HAMMU_DB_PREFRENCES_KEY, HAMMU_DB_SERVICES_KEY); $all_services_preferences = getAllQuestionsAccountType($account_post_val, array("fields" => $filed)); $app->response->setBody(json_encode($all_services_preferences)); }
function getAccountType() { $app = \Slim\Slim::getInstance(); $app->response->headers->set('Content-Type', 'application/json'); $app->response->setStatus(200); $account_post_val = $app->request()->params("sex"); $filed = array('field_f2d8bb949d7d74a70bcb2003abc5b436', 'field_f92bbdb57510b86ba6c506c487be3aa1'); $all_services_preferences = getAllQuestionsAccountType($account_post_val, array("fields" => $filed)); print_r($all_services_preferences); exit; $app->response->setBody(json_encode($all_services_preferences)); }