I want to remove the line which is show in attached screen shot from my page.How can I edit this from my yii2 project
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
The best way to do this is to override the layout of the gridView
widget. By default, the widget will generate a layout based on this pattern; {summary}\n{items}\n{pager}
. You can control over what appears in the widget like this;
echo GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'layout' => '{items}\n{pager}',
'columns' => [
// ...
],
]);
回答2:
In gridview
options set summary
to NULL
echo GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'summary' => '',
'columns' => [
// ...
],
]);
回答3:
In your grid view , use summary as empty:
echo GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'summary' => '',
]);
For more options of grid view check this link click here...