Template Property Of CGridView

Hi,

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

‘template’=>"{items}{pager}",

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:




'template'=>"{pager}\n{items}\n{pager}",



Any other changes are in the pager.css file

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

‘template’=>"{headline}\n{pager}\n{items}\n{pager}",

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

ok. How to a $template in GridView yii2 ?