php - Cakephp link alert -


i have following link delete function in cake:

    <?php echo $this->form->postlink(__(''), array('action' => 'delete', $website['website']['website_id']), array('class' => 'icon-trash   '), null, __('are sure want delete # %s?', $website['website']['website_id'])); ?> 

now can see there should message saying: are sure want delete?

but when click link nothing happens (exepect field being deleted ofcourse :p )

so how can make link display confirmation box?

this work

<?php echo $this->form->postlink(__('delete'), array(     'action' => 'delete', $website['website']['website_id']), array(     'class' => 'icon-trash'    ), __('are sure want delete # %s?', $website['website']['website_id'])); ?> 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -