Hi , I have associate array and i want to get that value in tabledata to show ....
array(
[tickets_name] => Array
(
[0] => Early birds
[1] => Access ticket
[2] => Attendees Sale
[3] => GROSS_SALES
)
[tickets_total] => Array
(
[0] => $110.00
[1] => $0.00
[2] => $100.00
[3] => $110.00
)
)
$render1 = new EventTotalReport($totalReport);
$render1-> run()->render();
class file---
function settings()
{
return array(
"assets"=>array(
"path"=>"../../../assets",
"url"=>UPLOAD_PATH."assets",
),
"dataSources"=>array(
"Total_datasource"=>array(
"class"=>'\koolreport\datasources\ArrayDataSource',
"dataFormat"=>"associate",
"data"=>array(
array("Tickets_name"=>$this->params['values1'], "Total"=>$this->params['totalvalue1']),
array("Tickets_name"=>$this->params['values2'], "Total"=>$this->params['totalvalue2']),
array("Tickets_name"=>$this->params['values3'], "Total"=>$this->params['totalvalue2']),
), ),) )
}
how to get this value
"TotalTickets_datasource"=>array(
"class"=>'\koolreport\datasources\ArrayDataSource',
"dataFormat"=>"associate",
"data"=>array(
array( for(int i=0;i<(count($this->params['tickets_name']));i++){
"TicketsName"=>,$this->params['tickets_name'][i]
},
for(int i=0;i<(count($this->params['tickets_total']));i++){
"Total"=>,$this->params['tickets_total'][i]
}
),
),
),
I tried with this buts its not working .....