[eluser]MindFeed[/eluser]
Can you please write following line in first place at your index() function and see if database object been created and assigned to CI or not ?
Code:
print "<pre>"; print_r($this);exit;
you should see something like this, [that's oracle I am using, you might see relevant result]
Code:
[db] => CI_DB_oci8_driver Object
(
[dbdriver] => oci8
[_escape_char] => "
[_count_string] => SELECT COUNT(1) AS
[_random_keyword] => ASC
[_commit] => 32
[stmt_id] =>
[curs_id] =>
[limit_used] =>
[error] =>
If not can you please try loading database with the following line in your constructor.
Code:
$this->load->database();
Post the behavior and error if any !
Thanks,
Bhargav