Zend框架用户交互

This is my html view file:

<?php foreach($this->application as $row): ?>
<tr>
<td><?php echo $row['APPID'];?></td>
<td><?php echo $row['APPNAME'];?></td>

">DELETE

This my zend framework controller deleteAction:

public function deleteAction()
{   
    $form = new ApplicationForm();
    $form->submit->setlabel('Delete');
    $this->view->form = $form;

    $ID = $this->_getParam('ID', 0);  

    $delete_app = new Application()
    $delete_app->deleteApp($ID);
    $this->_helper->redirector('index');                                            
}

Currently my delete action is working fine. Now before the delete is executed I want to add a user confirmation with yes | no options.

How can I do this?

In your view you can add a pop-up box:

if (window.confirm('Are you sure you want to delete?'))
{
    window.location = "<?php echo $this->url('delete', array('action'=>'delete', 'id' => $example->getId())) ?>"
}

See an example here.