[eluser]Unknown[/eluser]
Hello to all. First of all, i am new to codeigniter, and second i got already stuck.
I have firebird database on localhost which is working fine. ( I can access it through IBExpert)
I am using newest codeIgniter framework (2.1.0)
First i downloaded drivers from Carlos Garcia
Code:
https://github.com/cgarciagl/Firebird-for-Codeigniter
Set up all correctly(I think) and when I test a query i got result like this:
Code:
CI_DB_Firebird_result Object
(
[conn_id] => Resource id #28
[result_id] => Resource id #33
[result_array] => Array
(
)
[result_object] => Array
(
)
[custom_result_object] => Array
(
)
[current_row] => 0
[num_rows] => 1
[row_data] =>
)
Than i downloaded ibase drivers from codeigniter wiki:
Code:
http://codeigniter.com/wiki/File:ibase.zip/
also followed setup steps, and now i got error like this:
Code:
Fatal error: Class 'CI_Language' not found in C:\...DB_driver.php on line 1046
If someone can, please help!
This is the code from the model class:
Code:
public function getAll() {
$sql = "SELECT * FROM {$this->table_name}";
$query = $this->db->query($sql);
if ($query->num_rows() > 0) {
return $query;
} else {
return false;
}
}
Thanks in advance!
P.S I would prefer to use first driver...and Sorry for my bad english! cheers