Sorry, I should have been clearer - I'm just referring to you using a
HTTP GET request to call the approve function, rather than a POST
using a html form. It's no big deal :)

Also, fyi, you can also use the Session component to redirect to a pge
and have the flash message appear on that page, rather than the 'see a
message, wait for redirect; functionality that you get from the flash
method you're currently using. Just some food for thought...

Wood

On Feb 25, 6:43 pm, jelmer <[EMAIL PROTECTED]> wrote:
> Thank you, I've managed to make it work using the code below:
>
>         function approve($id)
>         {
>                         $this->Comment->id = $id;
>                         if($this->Comment->saveField('visible',1))
>                         $this->flash('This comment has been 
> approved','/comments/
> moderate');
>         }
>
> I'm not sure about the "mini forms" for security you're talking about,
> could you give an example or explain it??
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to