Example #1
0
/* @var $form yii\widgets\ActiveForm */
?>

<div class="book-search">

    <?php 
$form = ActiveForm::begin(['action' => ['index'], 'method' => 'get']);
?>
    <?php 
$render = new Render($form, $model);
?>

    <div class="row">
        <div class="col-md-6">
            <?php 
echo $render->selectField('author_id', Author::getList());
?>
        </div>

        <div class="col-md-6">
            <?php 
echo $form->field($model, 'name');
?>
        </div>

        <div class="col-md-6">
            <?php 
echo $render->dateField('date_from');
?>
        </div>