[SOLVED] Images within the Pager

I would like to use define images within the pager but wonder if it is possible?

Have been using…


'prevPageLabel'=>'<<',

Tried changing to …


'prevPageLabel'=>Yii::app()->request->baseUrl."/images/arrow-doubleleft.png",

This only renders /images/arrow-doubleleft.png not an image.

Any ideas?

You can use your stylesheets for tweaking.

Forgot about that…

I added


ul.yiiPager2 .previous,

{

  background: url("../images/arrow-doubleleft.png");

}

but this does not work. Still no image. Is my css wrong or do I have to change something in my extended CLinkPager file also?

Try like that


'prevPageLabel'=>Chtml:image("bla bla bla");

or


'prevPageLabel'=>"<img src='/path/to/image.jpg'/>";

Thanks it works.