[eluser]nebulom[/eluser]
I get this error
Code:
Fatal error: Call to undefined method Country::_remove_invisible_characters() in D:\tmxpage\Apache2\htdocs\ees\branches\2.0\system\database\drivers\oci8\oci8_driver.php on line 378
When I have a model
Code:
<?php
class Country_model extends Model {
function get_countries() {
$query = $this->db->get('EES_COUNTRIES');
foreach ($query->result_array() as $row) {
$result[] = $row;
}
return $result;
}
function get_country($id) {
$query = $this->db->where('ID', $id)->get('EES_COUNTRIES');
$result = $query->row_array();
return $result;
}
}
?>
while calling it in the controller
Code:
<?php
class Country extends Controller {
. . .
function edit($id) {
$this->load->database();
$config['base_url'] = $this->base_url .'index.php/country/index/';
$this->load->model('country_model');
$data['countries'] = $this->country_model->get_country($id);
$this->load->helper('url');
$output['content'] = $this->load->view('country/list', $data, true);
$output['css'] = $this->css;
$output['base_url'] = $this->base_url;
$output['title'] = $this->title;
$this->load->view('layout', $output);
}
Or am I missing something? I do it with Oracle having a config
Code:
$db['default']['hostname'] = "//localhost/XE";
$db['default']['username'] = 'user';
$db['default']['password'] = "password";
$db['default']['database'] = '';
$db['default']['dbdriver'] = "oci8";