protected function addCity()
    {
        $this->controlAccess('city_add');

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

        $this->redirect('', $this->text('City has not been added'), 'warning');
    }
protected function addCity()
    {
        $this->controlAccess('city_add');

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

        $this->redirect('', $this->text('City has not been added'), 'warning');
    }
protected function addCity ( ) { $ this -> controlAccess ( 'city_add' ) ; if ( $ this -> city -> add ( $ this -> getSubmitted ( ) ) ) { $ url = "admin/settings/cities/{$this->data_country['code']}/{$this->data_state['state_id']}" ; $ this -> redirect ( $ url , $ this -> text ( 'City has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'City has not been added' ) , 'warning' ) ; }
Adds a new city
Adds a new city