Hi

How do I put ccs 'class' and 'id' tags into html helpers?

I have a image link like...
<a href="about"><img src="want_to_know.png" title="About us"  
alt="About us" width="83" height="78" /></a>
The proper cakephp code for that would be...

<?php echo $html->image('want_to_know.png', array('title' => 'About  
us', 'alt' => 'About us', 'width' => '83', 'height' => '78', 'url' =>  
'about')); ?>

But what about adding a css id or class tag like this...
<a href="about"><img src="want_to_know.png" title="About us"  
alt="About us" width="83" height="78" id="about_css" /></a>
What is the right way to do this in cake?

Paul
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to