(11-29-2014, 04:54 PM)Rufnex Wrote: Ok, have you loaded the database library in you config or in your controller?
I call database from this command on main page/file (header.php) and it works through all project: $this->load->database(); - only excepting function().
I changed in application/autoload.php this line:
$autoload['libraries'] = array();
to
$autoload['libraries'] = array('database');