public function delete1($id) { $this->Form->id = $id; $this->Form->delete($this->request->data('Form.image')); $this->Session->setFlash('Image remove successfully'); }
echo $this->Html->image('/app/webroot/images/small/thumb_' . $ceck['Form']['image'],array('alt'=>'apple','width'=>'70px','height'=>'50px')) ; echo "<br>"; echo $this->Html->link($this->Html->image('delete.png', array('alt' => 'Delete','title' => 'Delete')), array( 'controller' => 'forms','action' => 'delete1',$ceck['Form']['id'] ), array( 'escape' => false, 'confirm' => 'Are you sure you want to delete?' )); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)