[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?