We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
after configured. i got error Unknown scenario: default.
Unknown scenario: default
I solved this using yiisoft/yii2#655
But can't log into backend after entering correct username and password. again showing login page.
The text was updated successfully, but these errors were encountered:
hy. you overwrite scenario method in model. But, you need extend scenario. so..
wrong:
public function scenarios() { return [ self::SCENARIO_JOIN=>['email','name','username','birthdate','gender','password','passagain'] ]; }
Good:
const SCENARIO_JOIN = 'Join'; public function scenarios() { $scenarios = parent::scenarios(); $scenarios[self::SCENARIO_JOIN] = ['email','name','username','birthdate','gender','password','passagain']; return $scenarios; } public function rules() { return [ [['email','name','username','birthdate','gender','password','passagain'],'required','on'=>self::SCENARIO_JOIN],
Please fix somebody the guide: http://www.yiiframework.com/doc-2.0/guide-structure-models.html
Sorry, something went wrong.
Module has been updated to an initial usable release (though not tested fully)... Check #21.
No branches or pull requests
after configured. i got error
Unknown scenario: default
.I solved this using yiisoft/yii2#655
But can't log into backend after entering correct username and password.
again showing login page.
The text was updated successfully, but these errors were encountered: