Hi
I am using in my view the line:
<div class="page-break"></div>
in my code and when I try to print id does not generate a new page for each report. here is the report view code
foreach ( $this->classList as $class) {
echo '<div class="page-header" style="height:30px"><span>Header</span></div>';
echo '<h1 class="text-center pb-3">'. lang('tts.report_class_schedule'). ' ' .$class['class_name']. '</h1>';
Table::create(array(
"dataSource"=>$this->dataStore("DS_".$class['id']),
"cssClass"=>array(
"table"=>"table table-bordered text-center",
"th"=>"table-dark text-center",
),
"sorting"=>array(
"hour_num"=>"asc",
)
));
echo '<div class="page-footer" style="bottom:30px"><span>Footer</span></div>';
echo '<div class="page-break"></div>';
}