Usage example:
~~~
use kartik\form\ActiveForm;
use kartik\builder\Form;
$form = ActiveForm::begin($options); // $options will be your form config array params.
echo Form::widget([
'model' => $model, // your model
'form' => $form,
'columns' => 2,
'attributes' => [
'username' => ['type' => Form::INPUT_TEXT, 'options'=> ['placeholder'=>'Enter username...']],
'password' => ['type' => Form::INPUT_PASSWORD],
'rememberMe' => ['type' => Form::INPUT_CHECKBOX, 'enclosedByLabel' => true],
]
]);
ActiveForm::end();
~~~