protected function wizardAddField()
    {
        // Required
        $this->validatePrompt('title', $this->text('Name'), 'field');
        $this->validateMenu('type', $this->text('Type'), 'field', $this->field->getTypes());
        $this->validateMenu('widget', $this->text('Widget'), 'field', $this->field->getWidgetTypes());

        // Optional
        $this->validatePrompt('status', $this->text('Status'), 'field', 0);
        $this->validatePrompt('weight', $this->text('Weight'), 'field', 0);

        $this->validateComponent('field');
        $this->addField();
    }
protected function wizardAddField()
    {
        // Required
        $this->validatePrompt('title', $this->text('Name'), 'field');
        $this->validateMenu('type', $this->text('Type'), 'field', $this->field->getTypes());
        $this->validateMenu('widget', $this->text('Widget'), 'field', $this->field->getWidgetTypes());

        // Optional
        $this->validatePrompt('status', $this->text('Status'), 'field', 0);
        $this->validatePrompt('weight', $this->text('Weight'), 'field', 0);

        $this->validateComponent('field');
        $this->addField();
    }
protected function wizardAddField ( ) { // Required $ this -> validatePrompt ( 'title' , $ this -> text ( 'Name' ) , 'field' ) ; $ this -> validateMenu ( 'type' , $ this -> text ( 'Type' ) , 'field' , $ this -> field -> getTypes ( ) ) ; $ this -> validateMenu ( 'widget' , $ this -> text ( 'Widget' ) , 'field' , $ this -> field -> getWidgetTypes ( ) ) ; // Optional $ this -> validatePrompt ( 'status' , $ this -> text ( 'Status' ) , 'field' , 0 ) ; $ this -> validatePrompt ( 'weight' , $ this -> text ( 'Weight' ) , 'field' , 0 ) ; $ this -> validateComponent ( 'field' ) ; $ this -> addField ( ) ; }
Add a new field step by step
Add a new field step by step