When I try to call
$this->load->database();
yields the following error `"Call to a member function database() on a non-object"
Autoloading the database doesnt help too...
when I try to autoload it.
all calls to database like
$this->db->get('people');
it says get method is undefined...
I have no clue what and where to start..
\
anyone ?
Go to autoload.php in
application/config/autoload.php
and add thisMake sure your connection settings are fine in
application/config/database.php
Than in the library do it like this
Use extends CI_Model if not working try extends Model
You can load the database by two methods:
Method 1:Automatic Connecting
$autoload['libraries']=array('database');
Method 2: Manual Connecting
$this->load>database();
i hope above methods clear your confusion....