Yii2 passing data from 3 Gridview to DataBase
<p>I have in one page echo of 3 different gridview based on 3 different models. Models have no connection.
I want to collect some particular data from each grid with chechbox and send them in same DB tables. 
This is the display page:</p>

<pre><code>/** Operators Grid View  **/ 
&lt;?= GridView::widget([
    'dataProvider' =&gt; $dataProvider,
    'filterModel' =&gt; $searchModel,
    'columns' =&gt; [
                    ['class' =&gt; 'yii\grid\SerialColumn'],

                    [ 'attribute' =&gt; 'useralias',
                    'label' =&gt;'Operator Name',],

                    [ 'class' =&gt; 'yii\grid\CheckboxColumn',],

                    [ 'attribute' =&gt; 'currency',
                    'label' =&gt;'Operator Currency',],

                    ['class' =&gt; 'yii\grid\ActionColumn', 'template' =&gt; '{view}'],
                    ],
]); ?&gt;

    /** Country Grid View  **/
     &lt;?= GridView::widget([
    'dataProvider' =&gt; $dataProviderCountry,
    'filterModel' =&gt; $searchModelCountry,
    'columns' =&gt; [
                    ['class' =&gt; 'yii\grid\SerialColumn'],

                    [ 'class' =&gt; 'yii\grid\CheckboxColumn',],


                    [ 'attribute' =&gt; 'popis',
                    'label' =&gt;'Country',],

                    ['class' =&gt; 'yii\grid\ActionColumn', 'template' =&gt; '{view}'],
                    ],
]); ?&gt;
    /** Currency Grid View  **/

     &lt;?= GridView::widget([
    'dataProvider' =&gt; $dataProviderCurrency,
    'filterModel' =&gt; $searchModelCurrency,
    'columns' =&gt; [
                    ['class' =&gt; 'yii\grid\SerialColumn'],

                    [ 'attribute' =&gt; 'currency_name',
                    'label' =&gt;'Currency Name',],
                    [ 'class' =&gt; 'yii\grid\CheckboxColumn',], 


                    [ 'attribute' =&gt; 'value',
                    'label' =&gt;'Value',],

                    ['class' =&gt; 'yii\grid\ActionColumn', 'template' =&gt; '{view}'],
                    ],
]); ?&gt;
</code></pre>

<p>This is index function from controller:</p>

<pre><code>public function actionIndex()
{
            //RMS
    $searchModel = new CardrmsSearch();
    $dataProvider = $searchModel-&gt;search(Yii::$app-&gt;request-&gt;queryParams);
            //Country
            $searchModelCountry = new CountrySearch();
    $dataProviderCountry = $searchModelCountry-&gt;search(Yii::$app-&gt;request-&gt;queryParams);
            //Currency      
            $searchModelCurrency = new CurrencySearch();
    $dataProviderCurrency = $searchModelCurrency-&gt;search(Yii::$app-&gt;request-&gt;queryParams);

    return $this-&gt;render('index', [
        'searchModel' =&gt; $searchModel,
        'dataProvider' =&gt; $dataProvider,
                    'searchModelCountry' =&gt; $searchModelCountry,
        'dataProviderCountry' =&gt; $dataProviderCountry,
                    'searchModelCurrency' =&gt; $searchModelCurrency,
        'dataProviderCurrency' =&gt; $dataProviderCurrency,
    ]);    }
</code></pre>

<p>I can't find anything for this, my idea was to create one action for collecting the data, but I dont know how to colect the data from all 3 selected checkbox in one step!
Plz any tips how it can be done? </p>