Thursday, March 24, 2011

Newbie having trouble with 'html helper', need to add 'rel' to url...

Hi Guys,

I'm using the following code:

echo $this->Html->image('photos/' . $resource['Resource']['filename'],
array(
'alt' => $resource['Resource']['title'],
'url' => array('controller' => 'resources', 'action' => 'lightbox',
$resource['Resource']['filename_large'])
));

What I need to do is make the resulting link have a 'rel' attribute so
it ends up looking like...

<a href="linketc..." rel="prettyPhoto"><img src="blah"></a>

...but I can't figure out from the documentation how to do it.

Thanks in advance for any assistance.

Adam.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate