Tuesday, October 23, 2012

Re: Allow special characters in HtmlHelper

Thanks Chetan & Marcus.

On 10/23/2012 12:23 AM, chetan varshney [via CakePHP] wrote:

Use this for example $imgTag = $this->Html->image($image['Image'] ['thumb_path'], array( 'alt' => $title )); $options = array('class' => 'thumb', 'name' => trim(Inflector::slug($title)), 'title' => trim($title), 'escape'=>false);

echo $this->Html->link($imgTag, $this->Html->url($image['Image'] ['small_path'],true), $options);

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 



If you reply to this email, your message will be added to the discussion below:
http://cakephp.1045679.n5.nabble.com/Allow-special-characters-in-HtmlHelper-tp5711911p5711913.html
To start a new topic under CakePHP, email [hidden email]
To unsubscribe from CakePHP, click here.
NAML



View this message in context: Re: Allow special characters in HtmlHelper
Sent from the CakePHP mailing list archive at Nabble.com.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: