protected function wizardAddCategory()
    {
        // Required
        $this->validatePrompt('title', $this->text('Title'), 'category');
        $this->validatePrompt('category_group_id', $this->text('Category group ID'), 'category');

        // Optional
        $this->validatePrompt('parent_id', $this->text('Parent category ID'), 'category', 0);
        $this->validatePrompt('description_1', $this->text('First description'), 'category', '');
        $this->validatePrompt('description_2', $this->text('Second description'), 'category', '');
        $this->validatePrompt('meta_title', $this->text('Meta title'), 'category', '');
        $this->validatePrompt('meta_description', $this->text('Meta description'), 'category', '');
        $this->validatePrompt('status', $this->text('Status'), 'category', 0);
        $this->validatePrompt('weight', $this->text('Weight'), 'category', 0);

        $this->validateComponent('category');
        $this->addCategory();
    }
protected function wizardAddCategory()
    {
        // Required
        $this->validatePrompt('title', $this->text('Title'), 'category');
        $this->validatePrompt('category_group_id', $this->text('Category group ID'), 'category');

        // Optional
        $this->validatePrompt('parent_id', $this->text('Parent category ID'), 'category', 0);
        $this->validatePrompt('description_1', $this->text('First description'), 'category', '');
        $this->validatePrompt('description_2', $this->text('Second description'), 'category', '');
        $this->validatePrompt('meta_title', $this->text('Meta title'), 'category', '');
        $this->validatePrompt('meta_description', $this->text('Meta description'), 'category', '');
        $this->validatePrompt('status', $this->text('Status'), 'category', 0);
        $this->validatePrompt('weight', $this->text('Weight'), 'category', 0);

        $this->validateComponent('category');
        $this->addCategory();
    }
protected function wizardAddCategory ( ) { // Required $ this -> validatePrompt ( 'title' , $ this -> text ( 'Title' ) , 'category' ) ; $ this -> validatePrompt ( 'category_group_id' , $ this -> text ( 'Category group ID' ) , 'category' ) ; // Optional $ this -> validatePrompt ( 'parent_id' , $ this -> text ( 'Parent category ID' ) , 'category' , 0 ) ; $ this -> validatePrompt ( 'description_1' , $ this -> text ( 'First description' ) , 'category' , '' ) ; $ this -> validatePrompt ( 'description_2' , $ this -> text ( 'Second description' ) , 'category' , '' ) ; $ this -> validatePrompt ( 'meta_title' , $ this -> text ( 'Meta title' ) , 'category' , '' ) ; $ this -> validatePrompt ( 'meta_description' , $ this -> text ( 'Meta description' ) , 'category' , '' ) ; $ this -> validatePrompt ( 'status' , $ this -> text ( 'Status' ) , 'category' , 0 ) ; $ this -> validatePrompt ( 'weight' , $ this -> text ( 'Weight' ) , 'category' , 0 ) ; $ this -> validateComponent ( 'category' ) ; $ this -> addCategory ( ) ; }
Add a new category step by step
Add a new category step by step