Hi team, I have created one codeIgniter project. Here,i used use \koolreport\codeigniter\Friendship; method to connect database.
But, i have got error when getting data from database like,
Uncaught Error: Call to undefined method CI_DB_mysqli_result::unbuffered_row() in C:\xampp\htdocs\myproj\application\libraries\koolreport\packages\codeigniter\CIDataSource.php:105
My source file is
<?php
require APPPATH."/libraries/koolreport/autoload.php";
class MyReport extends \koolreport\KoolReport
{
use \koolreport\codeigniter\Friendship;
use \koolreport\clients\Bootstrap;
function settings()
{
return array(
"assets"=>array(
"path"=>"../../assets",
"url"=>"assets",
),
// "dataSources"=>array(
// "alljobs"=>array(
// "connectionString"=>"mysql:host=localhost;dbname=dbname",
// "username"=>"root",
// "password"=>"",
// "charset"=>"utf8"
// ),
// )
);
}
protected function setup()
{
$this->src("default")
->query("select * from nrm_business")
->pipe($this->dataStore("jobs_list"));
}
}
Need some solution. Appreciated.