Customise grid view in 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? 回答1: To change only summary option, you can use: 'summary' => "{begin} - {end} {count} {totalCount} {page} {pageCount}", Then, if you want to empty summary set with empty string value like: 'summary'=> "", and to change layouts you can use: 'layout'=> "{summary}\n{items}\n{pager}" Then, if you want to empty layouts set layout with empty