protected function wizardAddCountry()
    {
        $this->validatePrompt('code', $this->text('Code'), 'country');
        $this->validatePrompt('name', $this->text('Name'), 'country', '');
        $this->validatePrompt('native_name', $this->text('Native name'), 'country', '');
        $this->validatePrompt('zone_id', $this->text('Zone'), 'country', 0);
        $this->validatePrompt('status', $this->text('Status'), 'country', 0);
        $this->validatePrompt('weight', $this->text('Weight'), 'country', 0);

        $this->validateComponent('country');
        $this->addCountry();
    }
protected function wizardAddCountry()
    {
        $this->validatePrompt('code', $this->text('Code'), 'country');
        $this->validatePrompt('name', $this->text('Name'), 'country', '');
        $this->validatePrompt('native_name', $this->text('Native name'), 'country', '');
        $this->validatePrompt('zone_id', $this->text('Zone'), 'country', 0);
        $this->validatePrompt('status', $this->text('Status'), 'country', 0);
        $this->validatePrompt('weight', $this->text('Weight'), 'country', 0);

        $this->validateComponent('country');
        $this->addCountry();
    }
protected function wizardAddCountry ( ) { $ this -> validatePrompt ( 'code' , $ this -> text ( 'Code' ) , 'country' ) ; $ this -> validatePrompt ( 'name' , $ this -> text ( 'Name' ) , 'country' , '' ) ; $ this -> validatePrompt ( 'native_name' , $ this -> text ( 'Native name' ) , 'country' , '' ) ; $ this -> validatePrompt ( 'zone_id' , $ this -> text ( 'Zone' ) , 'country' , 0 ) ; $ this -> validatePrompt ( 'status' , $ this -> text ( 'Status' ) , 'country' , 0 ) ; $ this -> validatePrompt ( 'weight' , $ this -> text ( 'Weight' ) , 'country' , 0 ) ; $ this -> validateComponent ( 'country' ) ; $ this -> addCountry ( ) ; }
Add a new country step by step
Add a new country step by step