Open pigochu opened 8 years ago
$config = [
'steps' => [Yii::t('Профиль') => '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);
`
controller code
view code
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 ?