<?= ListView::widget([ 'dataProvider' => $relatedDataProvider, 'options' => ['tag' =>…
- User
is leaving emptyText the only way to not display listView when it empty/null
- Assistant
No, setting
'emptyText' => ''is the only way to avoid displaying the when the data provider is empty. In fact, only controls what is displayed the widget when there are no items; the widget container (the wrapping HTML) will still be rendered.