// контроллер
function function_name(){
$data=array();
$this->load->model('model_name');
$data['languageArray']=$this->model_name->get_language();
//load view file
$this->load->view('folder/file_name',$data);
}
// модель
function get_language(){
return $this->db->get('table_name')->result_array();
}
// просмотр
<select class="form-control" name="language_id" id ="language_id">
<option value="">Select Language</option>
<?php foreach ($languageArray as $language) { ?>
<option value="<?php echo $language['id'] ?>">
<?php echo $language['lang'] ?></option>
<?php } ?>
</select>