redirect loop when branching #4

funinsun opened this Issue Aug 5, 2011 · 0 comments


None yet
1 participant

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

am i missing something here ?


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

function _processGender() {

if($this->Client->validates()) {

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


} else {



return true;


return false;



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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment