Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

Branch logic at first step doesn't work #5

@yarkm13

Description

@yarkm13

Is it impossible to use branch mechanism at first step?

I can't figure out how to do it. I just need to skip first step in particular condotion.

My variants:

public function beforeFilter() {
    $this->Wizard->steps = array(array('childs' => array('child')), 'details', 'template', 'invite', 'message');
    $this->Wizard->defaultBranch = false;
}


public function wizard($step = null) {
    $this->Wizard->branch('childs', true);
    $this->Wizard->process($step); 
} 

Doesn't work. (error incorrect step. But if i returns to /wizard all goes correctly)

public function beforeFilter() {
    $this->Wizard->steps = array(array('family' => array('details'), 'childs' => array('child', 'details')), 'template', 'invite', 'message');
    //$this->Wizard->defaultBranch = false;
}

doesnt work after adding

public function wizard($step = null) {
    $this->Wizard->branch('childs');
    $this->Wizard->process($step); 
} 

but works without $this->Wizard->branch('childs');

How can i got this work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions