An input widget can be associated with a data model and an attribute,
or a name and a value. If the former, the name and the value will
be generated automatically.
Classes extending from this widget can be used in an [[\yii\widgets\ActiveForm|ActiveForm]]
using the [[\yii\widgets\ActiveField::widget()|widget()]] method, for example like this:
php
field($model, 'from_date')->widget('WidgetClassName', [
configure additional widget properties here
]) ?>
For more details and usage information on InputWidget, see the guide article on forms.