protected function addField()
    {
        $this->controlAccess('field_add');

        if ($this->field->add($this->getSubmitted())) {
            $this->redirect('admin/content/field', $this->text('Field has been added'), 'success');
        }

        $this->redirect('', $this->text('Field has not been added'), 'warning');
    }
protected function addField()
    {
        $this->controlAccess('field_add');

        if ($this->field->add($this->getSubmitted())) {
            $this->redirect('admin/content/field', $this->text('Field has been added'), 'success');
        }

        $this->redirect('', $this->text('Field has not been added'), 'warning');
    }
protected function addField ( ) { $ this -> controlAccess ( 'field_add' ) ; if ( $ this -> field -> add ( $ this -> getSubmitted ( ) ) ) { $ this -> redirect ( 'admin/content/field' , $ this -> text ( 'Field has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Field has not been added' ) , 'warning' ) ; }
Adds a new field
Adds a new field