Welcome Guest, Not a member yet? Register   Sign In
How to get session->flashdata() working in HMVC module?
#4

[eluser]helloworldly[/eluser]
Thanks.

A test in application/modules/module-name/controllers/module-name.php:

Code:
function function-name()
{
$this->session->set_flashdata('message', 'ERROR: hello world');
echo 'flash message = ' . $this->session->flashdata('message');
}


Which only works if the parent controller that loads this module (via ajax) has
Code:
$this->session->set_flashdata('message', 'ERROR: hello world');

otherwise 'message' is empty as it was never set it seems...


Messages In This Thread
How to get session->flashdata() working in HMVC module? - by El Forum - 04-15-2010, 03:08 PM
How to get session->flashdata() working in HMVC module? - by El Forum - 04-16-2010, 12:46 PM
How to get session->flashdata() working in HMVC module? - by El Forum - 04-17-2010, 03:02 PM
How to get session->flashdata() working in HMVC module? - by El Forum - 04-20-2010, 01:16 PM
How to get session->flashdata() working in HMVC module? - by El Forum - 04-20-2010, 01:36 PM
How to get session->flashdata() working in HMVC module? - by El Forum - 04-21-2010, 11:53 PM
How to get session->flashdata() working in HMVC module? - by El Forum - 05-16-2010, 06:15 AM
How to get session->flashdata() working in HMVC module? - by El Forum - 05-16-2010, 07:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB