protected function addCountryState()
    {
        $this->controlAccess('state_add');

        if ($this->state->add($this->getSubmitted())) {
            $url = "admin/settings/states/{$this->data_country['code']}";
            $this->redirect($url, $this->text('Country state has been added'), 'success');
        }

        $this->redirect('', $this->text('Country state has not been added'), 'warning');
    }
protected function addCountryState()
    {
        $this->controlAccess('state_add');

        if ($this->state->add($this->getSubmitted())) {
            $url = "admin/settings/states/{$this->data_country['code']}";
            $this->redirect($url, $this->text('Country state has been added'), 'success');
        }

        $this->redirect('', $this->text('Country state has not been added'), 'warning');
    }
protected function addCountryState ( ) { $ this -> controlAccess ( 'state_add' ) ; if ( $ this -> state -> add ( $ this -> getSubmitted ( ) ) ) { $ url = "admin/settings/states/{$this->data_country['code']}" ; $ this -> redirect ( $ url , $ this -> text ( 'Country state has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Country state has not been added' ) , 'warning' ) ; }
Adds a new country state
Adds a new country state