Ty you help me in most important part...After your solution there was an error and i found it.the complete is: <?php echo $html->link($html->image("delete.png",array("alt"=>"Delete","title"=>"Delete")),$html->url(array("controller"=>"users","action"=>"delete",$user['User']['id'])),array(),"Are you sure to delete user?",false);?>
Ty again m8! 2009/5/10 Kyle Decot <kdec...@gmail.com> > > Try this: > > echo $html->link($html->image("delete.png",array > ("alt"=>"Delete","title"=>"Delete")),$html->url(array > ("controller"=>"users","action"=>"delete")),array(),"Are you sure to > delete user?",false); > > > On May 10, 2:09 pm, paulos nikolo <paulitosthe...@gmail.com> wrote: > > 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 <enrique.jaco...@gmail.com> > > > > > > > > > > > > > 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 <paulitosthe...@gmail.com> 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 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 -~----------~----~----~----~------~----~------~--~---