I'm working on a basic website based on cakephp and already have comments working, I added a field to the database which defaults to 0, which means the comment has not been approved yet, so I've added a moderate function to the comments controller showing all the comments which haven't been moderated yet.
My question is, how do I update the field (set it to 1) by clicking a link (comments/approve/$id), I know how to save the data but only with a new, separate view. What I need is to approve a comment simply by clicking the url and then going back to the same moderation page. I think this should be a simple question, I've googled and searched this group and the cakephp site but couldn't find anything so I hope you can answer my question, thanks in advance! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
