protected function updateCountry()
    {
        $this->controlAccess('country_edit');

        if ($this->country->update($this->data_country['code'], $this->getSubmitted())) {
            $this->redirect('admin/settings/country', $this->text('Country has been updated'), 'success');
        }

        $this->redirect('', $this->text('Country has not been updated'), 'warning');
    }
protected function updateCountry()
    {
        $this->controlAccess('country_edit');

        if ($this->country->update($this->data_country['code'], $this->getSubmitted())) {
            $this->redirect('admin/settings/country', $this->text('Country has been updated'), 'success');
        }

        $this->redirect('', $this->text('Country has not been updated'), 'warning');
    }
protected function updateCountry ( ) { $ this -> controlAccess ( 'country_edit' ) ; if ( $ this -> country -> update ( $ this -> data_country [ 'code' ] , $ this -> getSubmitted ( ) ) ) { $ this -> redirect ( 'admin/settings/country' , $ this -> text ( 'Country has been updated' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Country has not been updated' ) , 'warning' ) ; }
Updates a country
Updates a country