Template Property Of CGridView


Can anyone please guide me, how to use template property of CGridView?


I want to change the position of pagination in CGridView.

I generally want the pager at both top and bottom of the grid, so I use:


Any other changes are in the pager.css file

Hey Thanks It’s working, i have been thinking in different way ::)


extend CGridView and create a method renderHeadline() to echo a headline for instance

ok. How to a $template in GridView yii2 ?