[eluser]A_funs[/eluser]
Hi I keep getting an error saying $data is undefined when laoding a view, however, it is defined and it is even populating the view with results from the $data array! I don't understand?
Here is my code:
Code:
$data['query'] = $this->input->post('searchquery');
$this->load->model('search_model');
$data['sess'] = $this->search_model->searchjobs($this->data['session']['user_id'],$data['query']);
$this->load->view('ajax/searchjobs',$data);
Here is the error:
Code:
Message: Undefined property: Ajax::$data
Filename: controllers/ajax.php
Thanks for any insight you can provide!