I am using Session helper for flashing messages.

Pages Controller, Add action:
...
if($this->Page->save($this->data) {
  $this->setFlash('saved', 'flash');
  $this->redirect('pages/index');
} else {
  $this->setFlash('error', 'flash');
  $this->render();
}

Everything works fine. But when I am using $this->requestAction(), It
flash message and message stay in Session (so message is flashed
twice).

For example:
I have view without table, and I am rendering table by $this-
>requestAction('pages/list_data').

Pages Controller. list_data action:
function list_data() {
  $this->layout = null;
  $this->render()
}
so it render table, but flashMessage one more time. $session->flash()
is used in default view, so it should be the problem.

Any ideas?
Many thanks

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

Reply via email to