protected function wizardAddReview()
    {
        $this->validatePrompt('user_id', $this->text('User'), 'review');
        $this->validatePrompt('product_id', $this->text('Product'), 'review');
        $this->validatePrompt('text', $this->text('Text'), 'review');
        $this->validatePrompt('status', $this->text('Status'), 'review', 0);

        $this->validateComponent('review');
        $this->addReview();
    }
protected function wizardAddReview()
    {
        $this->validatePrompt('user_id', $this->text('User'), 'review');
        $this->validatePrompt('product_id', $this->text('Product'), 'review');
        $this->validatePrompt('text', $this->text('Text'), 'review');
        $this->validatePrompt('status', $this->text('Status'), 'review', 0);

        $this->validateComponent('review');
        $this->addReview();
    }
protected function wizardAddReview ( ) { $ this -> validatePrompt ( 'user_id' , $ this -> text ( 'User' ) , 'review' ) ; $ this -> validatePrompt ( 'product_id' , $ this -> text ( 'Product' ) , 'review' ) ; $ this -> validatePrompt ( 'text' , $ this -> text ( 'Text' ) , 'review' ) ; $ this -> validatePrompt ( 'status' , $ this -> text ( 'Status' ) , 'review' , 0 ) ; $ this -> validateComponent ( 'review' ) ; $ this -> addReview ( ) ; }
Add a new review step by step
Add a new review step by step