What happens if you remove the redirect all together? That way you can see the error message, that's probably obscured with the redirection.
Additionally, you may want to look at the manual related to routing - http://book.cakephp.org/view/46/Routes-Configuration Take note in section 3.4.5.5. I don't think this has anything to do with your 'delete' issue... just pointing out that brian is right, you don't want an admins_controller, and this is what I think you are trying to do. -teh On May 22, 5:14 am, lakers fan <[email protected]> wrote: > Hello, > > I have a page with list of groups and along with each item there is a > link to delete that group. But deletion is not working.. here is the code > > function deletegroup($id) > { > $this->Group->del($id); > $this->redirect(array('action' =>'groups')); > } > > when I move the mouse over the delete link, i see proper id value.. if i use > the id to delete that record in phpmyadmin, it succeeds.. The Group object is > valid too.. Am i missing anything? > > Thanks, > > Bharani > > _________________________________________________________________ > Windows Live™: Keep your life in > sync.http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
