protected function deleteZone()
    {
        $this->controlAccess('zone_delete');

        if ($this->zone->delete($this->data_zone['zone_id'])) {
            $this->redirect('admin/settings/zone', $this->text('Zone has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Zone has not been deleted'), 'danger');
    }
protected function deleteZone()
    {
        $this->controlAccess('zone_delete');

        if ($this->zone->delete($this->data_zone['zone_id'])) {
            $this->redirect('admin/settings/zone', $this->text('Zone has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Zone has not been deleted'), 'danger');
    }
protected function deleteZone ( ) { $ this -> controlAccess ( 'zone_delete' ) ; if ( $ this -> zone -> delete ( $ this -> data_zone [ 'zone_id' ] ) ) { $ this -> redirect ( 'admin/settings/zone' , $ this -> text ( 'Zone has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Zone has not been deleted' ) , 'danger' ) ; }
Deletes a zone
Deletes a zone