我知道单击链接时获取确认消息的代码如下所示。
<?php
echo $html->link('Delete',
array('controller'=>'forms','action'=>'delete', $r['Form']['id']),
array(),
'really delete the Form ?',
false
);
?>
通过单击确认消息中的“确定”按钮删除表单后,我需要一个警告框,显示“您的表单已被删除”。
有没有办法得到一个警告框而不是确认框或确认框之后的警告框?