protected function wizardAddCity()
    {
        $this->validatePrompt('name', $this->text('Name'), 'city');
        $this->validatePrompt('state_id', $this->text('Country state'), 'city');
        $this->validatePrompt('country', $this->text('Country'), 'city');
        $this->validatePrompt('zone_id', $this->text('Zone'), 'city', 0);
        $this->validatePrompt('status', $this->text('Status'), 'city', 0);

        $this->validateComponent('city');
        $this->addCity();
    }
protected function wizardAddCity()
    {
        $this->validatePrompt('name', $this->text('Name'), 'city');
        $this->validatePrompt('state_id', $this->text('Country state'), 'city');
        $this->validatePrompt('country', $this->text('Country'), 'city');
        $this->validatePrompt('zone_id', $this->text('Zone'), 'city', 0);
        $this->validatePrompt('status', $this->text('Status'), 'city', 0);

        $this->validateComponent('city');
        $this->addCity();
    }
protected function wizardAddCity ( ) { $ this -> validatePrompt ( 'name' , $ this -> text ( 'Name' ) , 'city' ) ; $ this -> validatePrompt ( 'state_id' , $ this -> text ( 'Country state' ) , 'city' ) ; $ this -> validatePrompt ( 'country' , $ this -> text ( 'Country' ) , 'city' ) ; $ this -> validatePrompt ( 'zone_id' , $ this -> text ( 'Zone' ) , 'city' , 0 ) ; $ this -> validatePrompt ( 'status' , $ this -> text ( 'Status' ) , 'city' , 0 ) ; $ this -> validateComponent ( 'city' ) ; $ this -> addCity ( ) ; }
Add a new city step by step
Add a new city step by step