Welcome Guest, Not a member yet? Register   Sign In
[Solved][CodeIgniter_1.7.1]: _remove_invisible_characters
#1

[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";
#2

[eluser]Pascal Kriete[/eluser]
Yeah, this slipped by on the last release. It's fixed in the svn repo.
Try grabbing this file, and replacing the existing system/database/drivers/oci8/oci8_driver.php.
#3

[eluser]nebulom[/eluser]
Thanks a lot.
#4

[eluser]mertcakmak[/eluser]
thanks
#5

[eluser]TheFuzzy0ne[/eluser]
The above post is spam. Can we delete it so we aren't indexing their Web site via Google.




Theme © iAndrew 2016 - Forum software by © MyBB