On 5/11/07, Tonyz <[EMAIL PROTECTED]> wrote:
> pass the id of the new post just saved?
>
> function add()
>     {
>         if (!empty($this->data))
>         {
>             if ($this->Post->save($this->data))
>             {
>                 $this->flash('Your post has been saved.','/posts');

Try    $this->flash('Your post has been saved.','/posts/view/'.$this->Post->id);

T

-- 
=============================================================
PHP for E-Biz: http://sanisoft.com
Cheesecake-Photoblog needs you!: http://cheesecake-photoblog.org
=============================================================

--~--~---------~--~----~------------~-------~--~----~
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