Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<?php


echo $this->Html->image('delete.png', array( 'title' => 'Delete', 'alt' =>'Delete' , 'url' => array('controller' => 'forms', 'action' => 'delete', $form['Form']['id'])),array('confirm' => 'Are you sure?'));

?>
Posted
Updated 5-Jan-15 23:52pm
v2

 
Share this answer
 
Comments
Sradhanjali Behera 6-Jan-15 6:32am    
thank you @Peter Leow
Thanx a lot.i have done it by own.its work perfectly.below is my coding

<?php echo $this->Html->link($this->Html->image('delete.png', array(
'alt' => 'Delete','title' => 'Delete')
), array(
'controller' => 'forms',
'action' => 'delete',
$form['Form']['id']
), array(
'escape' => false,
'confirm' => 'Are you sure you want to delete?'
));


?>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900