what's your DEBUG level ?
if it's not 0 (production level), flash() won't redirect
automatically. it will only display a link.

hope it helps.
++++++++
clément

On 4/5/07, Bruno <[EMAIL PROTECTED]> wrote:
>
> If i code in a controller (generated by bake)
>
>         function delete($id)
>         {
>                 if ($this->Livre->del($id))
>                 {
>                         $this->flash('The Livre with id: '.$id.' has been 
> deleted.', '/
> livres');
>                 }
>         }
>
> The flash function shows the message but don't redirects the user to
> the specified url '/livres'.
>
> Do you have any idea of my mistake ?
>
> NB : the function $this->render('index') work .
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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