views:

101

answers:

2

Hello,

I have this code for previous arrow from HTML coder

<img src="<?=$this->webroot?>img/arrow_button_prev.png" alt="Previous Event"
        style="opacity:1.0;filter:alpha(opacity=100); " onmouseover="this.style.opacity=0.7;this.filter.alpha.opacity=70" 
        onmouseout="this.style.opacity=1.0;this.filter.alpha.opacity=100" />

And I need to rigg that image into pagination

 <?php echo $this->Paginator->prev('<< ' , array(), null, array('class'=>'disabled'));?>

I tried to replace the << with the img tag and It outputs HTML codes. How can I achieve this?

+4  A: 

Try this:

<?php
echo $this->paginator->prev($html->image('arrow_button_prev.png'), array('escape' => false), null, array('class'=>'disabled'));
?>
TiuTalk
This is documented in the options section here http://book.cakephp.org/view/1459/MethodsS
Sam D
A: 

You will need to set "escape"=>false to prevent image tag being escaped.

The-Di-Lab