在 yii2 中自定义网格视图

2022-01-07 00:00:00 php yii2 gridview cgridview

如何在 Yii2 中删除特定网格视图的摘要和排序器.在 Yii1.1 中,我们可以通过设置模板属性来做到这一点.在 yii2 中如何实现?

How to remove summary and sorter for a particular grid view in Yii2. In Yii1.1 we can do that by setting the template property. In yii2 how to achieve this?

推荐答案

知道了,通过设置layout属性就可以实现了.

Got it.By setting the layout property,we can achieve it.

'layout'=>"{summary}
{items}
{pager}"

相关文章