I LIstView trying to organize the work of LIstView with links and greedy download. This is how I organize greedy loading.
$allGods=Gods::find()->with('prise','images','addfeilds')->all(); Here so I betray in representation
<?= ListView::widget([ 'dataProvider' => $productsDataProvider, 'itemView' => '_gods', 'viewParams' => [ 'allGods' => $allGods,] ]) ?> I try to use it like this
var_dump($model->images) I get an additional sql query. I understand that I'm doing something wrong. Do not tell me how to correct?