/** * Used to return the results from the search as an ajax request. * @todo add check to make sure that the paper is 'approved' */ public function query() { $papers = Search_Name::search('tips', $this->input->get()); echo json_encode($papers); die; }