04-04-2011, 05:19 PM
[eluser]RJ[/eluser]
Hello,
I have users running through a Beta signup sequence. Once the email has been successfully submitted a quick bit of flash data is added and a new view (pending) is loaded (see code below):
The display:
The problem is when the system takes you to either of these pages the flashdata does not display UNTIL you refresh the page or go back to the main page. It looks like the template library is not refreshing (or triggering) a refresh for the message to appear (best guess). Any thoughts how to solve?
Thanks
Hello,
I have users running through a Beta signup sequence. Once the email has been successfully submitted a quick bit of flash data is added and a new view (pending) is loaded (see code below):
Code:
if ( !$send )
{
$this->session->set_flashdata('message','Doh! The email did not send.');
$this->template->build('signup');
}
else
{
$this->session->set_flashdata('message','Success! Your validation email has been sent.');
$this->template->build('pending');
}
The display:
Code:
<h2>Almost done!</h2>
<p><?php echo $this->session->flashdata('message'); ?></p>
<h4>Please check your inbox for further instructions.</h4>
The problem is when the system takes you to either of these pages the flashdata does not display UNTIL you refresh the page or go back to the main page. It looks like the template library is not refreshing (or triggering) a refresh for the message to appear (best guess). Any thoughts how to solve?
Thanks