Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8526651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:19:56+00:00 2026-06-11T08:19:56+00:00

I hope someone on stackoverflow has some experience with the Wizard Behavior extension: http://www.yiiframework.com/extension/wizard-behavior/

  • 0

I hope someone on stackoverflow has some experience with the Wizard Behavior extension: http://www.yiiframework.com/extension/wizard-behavior/

The problem is that when I click submit on the first page (user), it goes all the way to the billing page and skips the company page…help?

I have 3 steps to collect information: a user, company and billing page. Here is my behaviors function in my controller:

public function behaviors() {
    return array(
     'wizard'=>array(
      'class'=>'ext.WizardBehavior.WizardBehavior',
      'steps'=>array(
       'user','company','billing'
      )
     )
    )
}

This is my process step function:

public function wizardProcessStep($event) {
    $name = '_wizard'.ucfirst($event->step);
    if (method_exists($this, $name)) {
        call_user_func(array($this,$name), $event);
    } else {
        throw new CException(Yii::t('yii','{class} does not have a method named "{name}"', array('{class}'=>get_class($this), '{name}'=>$name)));
    }
}

Here is my company step as an example:

protected function _wizardCompany($event) {
    echo 'called company';
    exit();
    $company=new Company;
    if(isset($_POST['Company'])) {
        $company->attributes=$_POST['Company'];
        if($company->validate()) {
            $event->sender->save($company->attributes);
            $event->handled = true;
        }
    }
    $this->render('new_company',array(
        'company'=>$company,
        'event'=>$event,
    ));
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T08:19:58+00:00Added an answer on June 11, 2026 at 8:19 am

    this doesn’t seem to be a bug, but by design. By default, WizardBehavior skips to the first unhandled step.

    You were probably testing your wizard and entered something into “User” and “Company”. When you are now at “Billing”, and go back to “User” (via url or link). enter something and submit again, it skips to billing because this is the first unhandled step. Notice that you can go to “Company” and all previously handled steps via the URL and links.

    This behavior can be set to false by

    public function behaviors() {
        return array(
         'wizard'=>array(
          'autoAdvance' => false,
         )
        )
    }
    

    Or you implement the onFinish event, so that the wizard is reset easily while testing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hope someone can answer this. Here is some sample code. namespace std { #ifdef
Hope someone will give me a hand with this problem I have. So here
Hope someone has an easy answer on this. I have a header image which
Hope someone can help me out with this problem I am having. I just
I hope someone out there can shed some light on the topic of creating
I'm newbie to Android development. I'm having problem here and hope someone could help
I have a problem that I hope you can help/guide me. I saw a
Hope someone can assist me with their expertise...i am having a problem with Xcode
managed to get my xsl working at http://www.xmlper.com/ (great tool good recommendation from other
Hope someone can help me I have declared the variable <?php $sitename = http://

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.