i have a view folder called eventos in Yii2. This view is an image gallery.

The \_view2.php is for display of the images to general public. It works quite well.

But now i want to create a globalsearch input text inside \_view2.php.

There i have already a GridView widget for display the images, but i don't want to use the $searchmodel boxes so i disable them.

**What i want is to render the \_search.php file with just one input field, inside the \_view2.php file**

My problem is in rendering the \_search.php inside the \_view2.php file.

Here is the code for \_view2.php:

```
<?= GridView::widget([
    'dataProvider' => $dataProvider,
    'filterModel' => $searchModel,
    'showOnEmpty'=>false,
    'summary'=>'',
    'showFooter'=>false,
    'showHeader' => false,
    'bordered' => false,
    'striped' => false,
    'hover' => true,
    //'options' => ['class' => 'grid-view'],
    //'layout' => "{summary}\n{items}\n{pager}",

    'columns' => [
        ['class' => 'yii\grid\SerialColumn'],

        //'id',
        //'nome',
        'descricao',
        'data',
        // No model -> getImageurl()
        [
            'label' => '',
            'format' => 'raw',
            'value'=> function($data) { return Html::a(Html::img($data->imageurl, ['width'=>'300', 'height' => "170"]), $data->foto); },
        ],
        [
            'label' => '',
            'format' => 'raw',
            'value'=> function($data) { return Html::a(Html::img($data->imageurl2, ['width'=>'300', 'height' => "170"]), $data->foto2); },
        ],

        ['class' => 'yii\grid\ActionColumn', 'template' => ''],
    ],
]); ?>

```

And i need to render the \_search.php inside the \_view2.php.

Code for \_search.php:

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

<?= $form->field($model, 'globalsearch') ?>

```

Any ideas?