public function rules()
{
return [
[['fieldname'], 'required']
]
}
What is the expected result?
Working client-side validation
What do you get instead?
Client-side validation does not work, because yii\bootstrap\Html::error() generate p block without needed help-block-error class. The same with label(), which does not add control-label class.
It took me a lot of time to figure out that I should add it, to get it working. I know I can do it easily, but why this is not out of the box?
What steps will reproduce the problem?
What is the expected result?
Working client-side validation
What do you get instead?
Client-side validation does not work, because yii\bootstrap\Html::error() generate
p
block without neededhelp-block-error
class. The same with label(), which does not addcontrol-label
class. It took me a lot of time to figure out that I should add it, to get it working. I know I can do it easily, but why this is not out of the box?Additional info