You need to feed the attributes as an array, as such:
$html->image('map.JPG', array('width' => '504', 'height' => '272', 'usemap' => '#worldmap'));?>
HTH,
Eric
On 10/15/06, Gayathiri <[EMAIL PROTECTED]> wrote:
I need to create a view with an image map using cakephp. when i use
<img src...> the view works..but when i use $html->img..it doesnt work
why? The following is the code...can anyone please help..
<?php echo
$html->image('map.JPG',$width="504",$height="272",$usemap="">
<map name="worldmap">
<area shape="poly"
coords="145,266,143,252,151,232,-1,84,155,113,162,128,193,135,228,127,244,132,261,131,267,145,263"
href="" target="_self">
<area shape="poly"
coords="223,122,220,112,231,109,228,101,214,92,200,53,215,51,235,81,240,80,239,61,252,111,271,115,255,125,251,118,247,118,249,117"
href="" target="_self">
</map>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---
- Re: help on view with image map Eric C Blount
- Re: help on view with image map Gayathiri