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

        $this->validateComponent('state');
        $this->addState();
    }
protected function wizardAddState()
    {
        $this->validatePrompt('code', $this->text('Code'), 'state');
        $this->validatePrompt('name', $this->text('Name'), 'state');
        $this->validatePrompt('country', $this->text('Country'), 'state');
        $this->validatePrompt('zone_id', $this->text('Zone'), 'state', 0);
        $this->validatePrompt('status', $this->text('Status'), 'state', 0);

        $this->validateComponent('state');
        $this->addState();
    }
protected function wizardAddState ( ) { $ this -> validatePrompt ( 'code' , $ this -> text ( 'Code' ) , 'state' ) ; $ this -> validatePrompt ( 'name' , $ this -> text ( 'Name' ) , 'state' ) ; $ this -> validatePrompt ( 'country' , $ this -> text ( 'Country' ) , 'state' ) ; $ this -> validatePrompt ( 'zone_id' , $ this -> text ( 'Zone' ) , 'state' , 0 ) ; $ this -> validatePrompt ( 'status' , $ this -> text ( 'Status' ) , 'state' , 0 ) ; $ this -> validateComponent ( 'state' ) ; $ this -> addState ( ) ; }
Add a new country state step by step
Add a new country state step by step