In my code (CakePHP v2.0.5) , I am doing the following:
public function invite() {
...
$this->Session->setFlash(__('The invitation has
been created.'));
$this->set('email',$this->request->data['Invite']['email']);
$this->render('welcome');
...
}
The problem is that when "welcome" is rendered, the flash message is
not showing up until the user goes to the page following the content
rendered by the "invite" action.
In other words, the user submits their information and gets the
"welcome" content, they don't see the flash message. When the user
clicks on a link and goes to the next page, the 'The invitation has
been created.' flash message appears.
Both the welcome content and the page they go to after use the same
layout that uses the "echo $this->Session->flash();" code.
Thanks.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php