public function searchCityAjax()
    {
        $country = $this->getPosted('country');
        $state_id = $this->getPosted('state_id');

        if (empty($country) || empty($state_id)) {
            return array();
        }

        $conditions = array(
            'status' => 1,
            'state_status' => 1,
            'country_status' => 1,
            'country' => $country,
            'state_id' => $state_id,
        );

        return (array) $this->city->getList($conditions);
    }
public function searchCityAjax()
    {
        $country = $this->getPosted('country');
        $state_id = $this->getPosted('state_id');

        if (empty($country) || empty($state_id)) {
            return array();
        }

        $conditions = array(
            'status' => 1,
            'state_status' => 1,
            'country_status' => 1,
            'country' => $country,
            'state_id' => $state_id,
        );

        return (array) $this->city->getList($conditions);
    }
public function searchCityAjax ( ) { $ country = $ this -> getPosted ( 'country' ) ; $ state_id = $ this -> getPosted ( 'state_id' ) ; if ( empty ( $ country ) || empty ( $ state_id ) ) { return array ( ) ; } $ conditions = array ( 'status' => 1 , 'state_status' => 1 , 'country_status' => 1 , 'country' => $ country , 'state_id' => $ state_id , ) ; return ( array ) $ this -> city -> getList ( $ conditions ) ; }
Returns an array of cities for the given country and state ID
@return array
Returns an array of cities for the given country and state ID