Commit 9a85c55e by Jansa Jose

organizer city list api

parent 4335131b
...@@ -464,7 +464,7 @@ class OrganizerServices extends CI_Controller { ...@@ -464,7 +464,7 @@ class OrganizerServices extends CI_Controller {
public function getOrganizerCityList(){ public function getOrganizerCityList(){
$data = (array)json_decode(file_get_contents('php://input')); $data = (array)json_decode(file_get_contents('php://input'));
$res = $this->Organizer_model->getOrganizerCityList($data,0); $res = $this->Organizer_model->getOrganizerCityList($data);
if($res['status'] != 0){ if($res['status'] != 0){
$this->response($res['data']); $this->response($res['data']);
}else{ }else{
...@@ -484,7 +484,7 @@ class OrganizerServices extends CI_Controller { ...@@ -484,7 +484,7 @@ class OrganizerServices extends CI_Controller {
public function editOrganizerCityDetails(){ public function editOrganizerCityDetails(){
$data = $_POST; $data = $_POST;
$res = $this->Organizer_model->editOrganizerCityDetails($data,0); $res = $this->Organizer_model->editOrganizerCityDetails($data);
if($res['status'] != 0){ if($res['status'] != 0){
$this->successResponse($res); $this->successResponse($res);
}else{ }else{
...@@ -494,7 +494,7 @@ class OrganizerServices extends CI_Controller { ...@@ -494,7 +494,7 @@ class OrganizerServices extends CI_Controller {
public function addCity(){ public function addCity(){
$data = $_POST; $data = $_POST;
$res = $this->Organizer_model->addCity($data,0); $res = $this->Organizer_model->addCity($data);
if($res['status'] != 0){ if($res['status'] != 0){
$this->successResponse($res); $this->successResponse($res);
}else{ }else{
......
...@@ -1256,7 +1256,7 @@ class Organizer_model extends CI_Model { ...@@ -1256,7 +1256,7 @@ class Organizer_model extends CI_Model {
return $res; return $res;
} }
public function getOrganizerCityList(){ public function getOrganizerCityList($data){
$res = array('status'=>0,'message'=>'Ohh No!! Something Went South','code'=>'ER06'); $res = array('status'=>0,'message'=>'Ohh No!! Something Went South','code'=>'ER06');
try{ try{
$count = $this->db->get_where('region')->num_rows(); $count = $this->db->get_where('region')->num_rows();
......
...@@ -522,12 +522,6 @@ class Validation_organizer_model extends CI_Model { ...@@ -522,12 +522,6 @@ class Validation_organizer_model extends CI_Model {
'message' => 'Organizer Id is null or empty' 'message' => 'Organizer Id is null or empty'
) )
), ),
'page' => array(
'required' => array(
'code' => 'ER04',
'message' => 'Page is null or empty'
)
),
), ),
'addHostCategory'=>array( 'addHostCategory'=>array(
'organiser_id' => array( 'organiser_id' => array(
...@@ -584,12 +578,6 @@ class Validation_organizer_model extends CI_Model { ...@@ -584,12 +578,6 @@ class Validation_organizer_model extends CI_Model {
'message' => 'Organizer Id is null or empty' 'message' => 'Organizer Id is null or empty'
) )
), ),
'page' => array(
'required' => array(
'code' => 'ER04',
'message' => 'Page is null or empty'
)
)
), ),
'getCityDetails'=>array( 'getCityDetails'=>array(
'organiser_id' => array( 'organiser_id' => array(
...@@ -674,12 +662,6 @@ class Validation_organizer_model extends CI_Model { ...@@ -674,12 +662,6 @@ class Validation_organizer_model extends CI_Model {
'message' => 'Organizer Id is null or empty' 'message' => 'Organizer Id is null or empty'
) )
), ),
'page' => array(
'required' => array(
'code' => 'ER04',
'message' => 'Page is null or empty'
)
)
), ),
'getOrganizerCategoryDetails'=>array( 'getOrganizerCategoryDetails'=>array(
'organiser_id' => array( 'organiser_id' => array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment