Welcome Guest, Not a member yet? Register   Sign In
Odd flash issue for me...
#3

[eluser]internut[/eluser]
I do have it and I'm getting strange behavior.

In:

/users/save/

I have:


Code:
$this->session->set_flashdata('sys_message', 'User Updated');
redirect("/users/edit/$_POST[id]/");

Then in:

/users/edit/ function I have:


Code:
$query = $this->db->query("SELECT * FROM users WHERE id='$id'");

if ($query->num_rows() > 0)  {
   $data = $query->row();
}

$data[sys_message] = $this->session->flashdata('sys_message');  // set system message to display

$this->load->view('users_edit',$data);

And its producing this error:

Fatal error: Cannot use object of type stdClass as array in C:\Program Files\WebServer\Abyss Web Server\htdocs\php\NEW\admin\system\application\controllers\users.php on line 217

If I move:

Code:
$this->load->view('users_edit',$data);

hmm now I notice it prolly has something to do with the $data array... Should i set that var in $data[] differently?


Messages In This Thread
Odd flash issue for me... - by El Forum - 07-07-2008, 10:49 PM
Odd flash issue for me... - by El Forum - 07-08-2008, 01:19 AM
Odd flash issue for me... - by El Forum - 07-08-2008, 10:13 AM
Odd flash issue for me... - by El Forum - 07-08-2008, 11:04 AM
Odd flash issue for me... - by El Forum - 07-08-2008, 11:04 AM
Odd flash issue for me... - by El Forum - 07-08-2008, 11:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB