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

redirect loop when branching #4

Open
funinsun opened this issue Aug 5, 2011 · 0 comments
Open

redirect loop when branching #4

funinsun opened this issue Aug 5, 2011 · 0 comments

Comments

@funinsun
Copy link

funinsun commented Aug 5, 2011

Im using your example for branching when i click on male or female i get this error

This webpage has a redirect loop
The webpage at http://localhost/fit/clients/wizard/Array has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.

the url looks like this
clients/wizard/Array

am i missing something here ?

//controller

$this->Wizard->steps = array('step1', 'step2', 'gender', array('male' => array('step3')), 'step4', array('female' => array('step5')));

function _processGender() {

$this->Owner->set($this->data);
if($this->Client->validates()) {

if($this->data['Owner']['gender'] == 'female') {

   $this->Wizard->branch('female');

} else {

   $this->Wizard->branch('male');

}

return true;

}

return false;
}

//view

$options=array('male'=>'male','female'=>'female');

echo $this->Form->radio('Owner.gender',$options,$attributes);?>

bancer referenced this issue in bancer/cakephp-wizard Nov 24, 2016
Addition of visibility keywords
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant