Hi Folks,
I'm searching for getting the nomber of rows returned from server.
Bellow is my test : ** Test1.php *****
class Test1 extends \koolreport\KoolReport
{
use \koolreport\amazing\Theme;
function settings()
{ $config = include "./config/config.php";
return array(
"dataSources"=>array("MyCustomers"=>$config["automaker"])
);
}
protected function setup() { }
}
** Test1.view.php *
<div >
<?php
$MyTable = Table::create(array( "name"=>"rty",
"paging"=>array("pageSize"=>5),
"dataSource"=>function() {return $this
->src('MyCustomers')
->query("select * from customers");
},
));
?>
</div>
<div class="text-center">
<?php $MyCount = 0;
/* how to get the number of rows from the datasource of the table $MyTable?*/
?>
<h6>Rowq count : <?php echo $MyCount?></h6>
</div>
Thanks.