use yii\widgets\ActiveForm; $form = ActiveForm::begin([ 'id' => 'example-form', 'options' => ['class' => 'form-horizontal'], 'fieldConfig' => [ 'template' => "{label}\nIn this example, we pass an array of configuration options to the begin() method of the ActiveForm class. The `id` option specifies the ID of the form, while the `options` option sets the CSS class of the form to 'form-horizontal'. The `fieldConfig` option specifies the HTML template and label options for each form field. The package library for the Yii\widgets\ActiveForm class is the Yii framework itself. The Yii framework is an open-source PHP framework that provides developers with a set of tools and libraries for building web applications quickly and easily.{input}\n{error}", 'labelOptions' => ['class' => 'col-sm-2 control-label'], ], ]);