load->model('dictionary_model'); } public function en_search_all() { $word = trim($_POST['word']); $data['result'] = $this->dictionary_model->en_search_all($word); if(count($data['result']) > 0) { $this->load->view('dictionary/result', $data); } else { echo 'No results were found!!!'; } } public function search() { $language_abbr = $_POST['language']; $word = trim($_POST['word']); $data['result'] = $this->dictionary_model->search($language_abbr, $word); if(count($data['result']) > 0) { $this->load->view('dictionary/result', $data); } else { echo 'No results were found!!!'; } } } ?>