HOW TO DISABLE SUMMARY TEXT FROM ListView

Yii has an amazing feature of summary text. It is helpful if you have hundreds of records and with pagination but it sometime looks awkward when you have only few records.
To turn off or disable the summary text from ListView in Yii you only need to supply blank value for the summery field while declaring the ListView.

echo ListView::widget( [
    'dataProvider' => $dataProvider1,
    'itemView' => '_item',
	'summary'=>'', 
] );

About Eshwar Dubey

Leave a Reply

Your email address will not be published. Required fields are marked *