Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

how to change the stepName ? #6

Description

@pigochu

controller code

            $config = [
                'steps' => ['profile', 'region', 'photo'],
                'events' => [
                    WizardBehavior::EVENT_WIZARD_STEP => [$this, $action->id.'WizardStep'], 
                    WizardBehavior::EVENT_AFTER_WIZARD => [$this, $action->id.'AfterWizard'], 
                    WizardBehavior::EVENT_INVALID_STEP => [$this, 'invalidStep'],
                ]
            ];
            $config['class'] = WizardBehavior::className();
            $this->attachBehavior('wizard', $config);

view code

<?= WizardMenu::widget( .............. ); ?>

I want to design an I18N site , So I need to change step's label name to other language in the view , but step's key name needn't change , how to do it ?

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