protected function deleteCity()
    {
        $this->controlAccess('city_delete');

        if ($this->city->delete($this->data_city['city_id'])) {
            $url = "admin/settings/cities/{$this->data_country['code']}/{$this->data_state['state_id']}";
            $this->redirect($url, $this->text('City has been deleted'), 'success');
        }

        $this->redirect('', $this->text('City has not been deleted'), 'warning');
    }
protected function deleteCity()
    {
        $this->controlAccess('city_delete');

        if ($this->city->delete($this->data_city['city_id'])) {
            $url = "admin/settings/cities/{$this->data_country['code']}/{$this->data_state['state_id']}";
            $this->redirect($url, $this->text('City has been deleted'), 'success');
        }

        $this->redirect('', $this->text('City has not been deleted'), 'warning');
    }
protected function deleteCity ( ) { $ this -> controlAccess ( 'city_delete' ) ; if ( $ this -> city -> delete ( $ this -> data_city [ 'city_id' ] ) ) { $ url = "admin/settings/cities/{$this->data_country['code']}/{$this->data_state['state_id']}" ; $ this -> redirect ( $ url , $ this -> text ( 'City has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'City has not been deleted' ) , 'warning' ) ; }
Deletes a city
Deletes a city