// this is the controller miscellaneous.php
function feedbackSave()
{
$data=array();
$data['subject'] = $this->input->post('subject', true);
$data['name'] = $this->input->post('lname', true);
$data['address'] = $this->input->post('address', true);
$data['email'] = $this->input->post('email', true);
$data['mobile'] = $this->input->post('mobile', true);
$data['comments'] = $this->input->post('comments', true);
$date_time = date('Y-m-d H:i:s');
$data['date'] = $date_time;
$this->load->model($this->config->item('general_model'), 'save_feedback',TRUE);
$this->save_feedback->feedbackSave($data);
$this->session->set_flashdata('feedback', 'Feedback send successfully');
redirect('miscellaneous/feedback');
}
// Fatal error: Call to undefined method CI_Session::set_flashdata()
// in C:\xampp\htdocs\travelmartbd\application\controllers\miscellaneous.php on line 81
// why?