How we send my data from controller to view and how we detect an error in my function.
public function ratings() {
$results['value']= $this->Home_registeration->get_ratings($_POST);
$this->load->view ('display_search_result', $results);
Echo "";
print_R ($results)
}