How to put ccs class and id tags in html helpers

2009-09-27 Thread Paul Willis
Hi

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

I have a image link like...
a href=aboutimg 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=aboutimg 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
-~--~~~~--~~--~--~---



Re: How to put ccs class and id tags in html helpers

2009-09-27 Thread c...@uapub.com

I think you need do like that:
?php echo $html-image('want_to_know.png', array('title' = 'About
us', 'alt' = 'About us', 'width' = '83', 'height' = '78', 'url' =
'about', 'id'='about_us')); ?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: How to put ccs class and id tags in html helpers

2009-09-27 Thread PaulW

Hmmm, you're quite right, it was as simple as that. I had tried that
but for some reason it didn't work, I must have had a typo or
something.

Cheers

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
-~--~~~~--~~--~--~---