Tuesday, March 30, 2010

Paginator Helper - escape not working

Hi everyone.

My Paginator Helper is not working properly.
Check out my code:

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

<?php echo $this->Paginator->next('próximo >>', array(), null, array('class' => 'disabled'));?>
OUTPUT: NOTHING (blank string)

<?php echo $this->Paginator->next('pr&oacute;ximo >>', array('escape'=>false), null, array('class' => 'disabled'));?>
OUTPUT: pr&oacute;ximo >> [should output 'próximo >>']

With image:
<?php echo $this->Paginator->prev($this->Html->image('app_arrow_left.png', array('title'=>'P&aacute;gina anterior')), array('escape'=>false), '', array('class'=>'disabled'));?>
OUTPUT: <img src="/img/app_arrow_left.png" title="P&amp;aacute;gina anterior" alt="" />
SHOULD OUTPUT: an image

I mean, the option 'escape'=>false is not working as it should be.
I am using 1.3 RC3 version, but it had already happend with me in the 1.2.x versions.
I had the solution changing the core paginator.php, but i don`t like to do that. Have anyone had this same problem?

Thank you.

FERNANDO - BRASIL.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
 
To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments: