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

function beforeFilter() {

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


        function wizard($step = null) {

        $this->Wizard->process($step);

        $this->Wizard->completeUrl = '/';

        }




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;
}
function _processFemale() {
        $this->ClientAddress->set($this->data);
                if($this->ClientAddress->validates()) {
                        return true;
                }
                return false;
        }



function _processMale() {


        $this->ClientAddress->set($this->data);



                if($this->ClientAddress->validates()) {
                        return true;
                }
                return false;
        }




        function _processStep3() {


        $this->ClientAddress->set($this->data);



                if($this->ClientAddress->validates()) {
                        return true;
                }
                return false;
        }
function _processStep4() {


        $this->ClientAddress->set($this->data);



                if($this->ClientAddress->validates()) {
                        return true;
                }
                return false;
        }


function _processStep5() {


        $this->ClientAddress->set($this->data);



                if($this->ClientAddress->validates()) {
                        return true;
                }
                return false;
        }

//view

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

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

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to