$this->redirect('name_of_action_you_are_redirecting_to');
Boom-shacka-lacka-boom.
-Joel.
On May 21, 9:00 pm, phaedo5 <[EMAIL PROTECTED]> wrote:
> I have this Edit view in my controller.
>
> function edit($id = null) {
> $this->Sorrow->id = $id;
> if (empty($this->data)) {
> $this->set('sorrow', $this->Sorrow->read());
> $this->data = $this->Sorrow->read();
> } else {
> if ($this->Sorrow->save($this->data['Sorrow'])) {
> $this->flash('Your post has been
> updated.','/sorrows');
> }
> }
> }
>
> I was hoping that it would update the database, which it does, and
> then redirect to the index view. Am I missing something? Obviously I
> am, the question is - what am I missing?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---