I am trying to delete a record using an AJAX link. The entry gets deleted,
effects and all that great stuff.... but after clicking "delete" I get
ERROR: The requested address 'users/delete_quote/(id number trying to
delete)' was not found on this server.
Now I am deleting the quote from the user page.
Tables Users haveMany Quotes
my users controller code :
function delete_quote($id)
// delete selected quote from profile
{
Configure::write('debug', 0);
if ($this->RequestHandler->isAjax()) {
$this->Quote->del($id);
}
}
Ideas of whets wrong or missing?
Thanks
Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---