Welcome Guest, Not a member yet? Register   Sign In
Redirecting and setting flash message,..
#10

[eluser]quest13[/eluser]
Thanks for the response.

Following is the code.After setting the data, I just call the 'view' and display it.The message flashes only after I refresh.But when I redirect this same message on some other controller, it works without refreshing. On this particular place, I have to load the view and cannot redirect.

Hope I made my point clear.

$data['result']=$this->Addproperty_model->Addproduct();

$this->session->set_flashdata('add_message', 'Data successfully added !');
$this->template->load('/admin/template', '/admin/Addform', $data,'');

Thanks


Messages In This Thread
Redirecting and setting flash message,.. - by El Forum - 06-27-2009, 01:13 AM
Redirecting and setting flash message,.. - by El Forum - 06-27-2009, 01:54 AM
Redirecting and setting flash message,.. - by El Forum - 06-27-2009, 02:50 AM
Redirecting and setting flash message,.. - by El Forum - 06-27-2009, 02:56 AM
Redirecting and setting flash message,.. - by El Forum - 06-27-2009, 03:44 AM
Redirecting and setting flash message,.. - by El Forum - 06-27-2009, 04:49 AM
Redirecting and setting flash message,.. - by El Forum - 06-27-2009, 05:15 AM
Redirecting and setting flash message,.. - by El Forum - 06-27-2009, 05:40 AM
Redirecting and setting flash message,.. - by El Forum - 06-27-2009, 08:47 AM
Redirecting and setting flash message,.. - by El Forum - 06-28-2009, 10:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB