I tried to use html->link as you said but i can't make it work.I wonder what
is the solution.

2009/5/10 Enrique <[email protected]>

>
> The "url" array is only that: an URL array, i.e. there is no "confirm"
> parameter here.
> What I would do is putting the image in a $html->link() and use it's
> "confirm" parameter and disable the HTML escape (to output the image
> tag correctly). Maybe there is another way, looking at the cake HTML
> helper source code often helps (how the parameters are passed
> through) ;-)
>
>
> On 10 Mai, 14:13, Paulos23 <[email protected]> wrote:
> > Hi peeps,
> > Well i am creating some nice crud functionality and i use some
> > images.All working perfect but i have problem with the delete action
> > coz i want a confirm message to appear when user tries to delete.What
> > am i doing wrong?Here is my example code:
> >
> > <?php echo $html->image("delete.png", array("alt" =>
> > "Delete","title"=>"Delete",'url' => array('controller' => 'users',
> > 'action' => 'delete',$user['User']['id'],array(),"Are you sure to
> > delete user?" )));?>
> >
> > The action works fine but no message displayed!
> >
> > Any help would be nice.
> > Ty in advance!
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to