Hi, I am using cakephp for form designing application.
In my code
<?php echo $html->link('Delete', array('action' => 'deleteForm', 'id' => $r['Form']['id']), null, 'Are you sure?' )?>
In my controller
function deleteForm($id = null)
{
$this->Form->del($id);
$this->Session->setFlash('Your entry has been deleted.');
$this->redirect(array('action'=>'homepage'));
}
In my deleteForm.ctp file i kept a back link only..
The Form is deleted and the Flash message came.But showing an error of forms/deleteForm/1 is not found in this SERVER.
Edit: The error is because i have saved the view file as deleteForm.ctp instead of delete_form.ctp Now it works. Thanks for everyone..