so, in view there’s form name and field range, if i click submit show data from model with that valid name and date.
so, in view there’s form name and field range, if i click submit show data from model with that valid name and date.
It isn’t clear about what do you want to achieve. Would you please clarify?
If you’re asking for validation, look at Yii’s ActiveForm
https://www.yiiframework.com/doc/api/2.0/yii-widgets-activeform
https://www.yiiframework.com/doc/guide/2.0/en/input-forms
If you want client-side validation, you need JavaScript. Yii has some basic client-side JavaScript validation based on your model’s rules, if you choose to use it.