KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Bootstrap not being applied on Table #656

Closed gkurl opened this topic on on Feb 7, 2019 - 2 comments

gkurl commented on Feb 7, 2019

Hi Guys.

I am having an issue, no Bootstrap/CSS styles are being loaded/applying on my code. I am exporting a simple table using this code:

<?php
?> <?php
                 use \koolreport\widgets\koolphp\Table;
                 use  \koolreport\clients\BootstrapCSS;
                 ?>
                 <html>
                 <head>
                     <meta charset="utf-8" />
                     <meta http-equiv="X-UA-Compatible" content="IE=edge">
                     <title>Active Employee List Report</title>
                     <meta name="viewport" content="width=device-width, initial-scale=1">
                 </head>
                 <body>
                     <?php
                     Table::create([
                    "dataStore" => $this -> dataStore('resultset1'),
                    "showHeader"=>false,
                    "cssClass" => ["table"=>"table table-bordered"]
                    ]);
                     ?>
                 </body>
                 </html>
 <?php 

However my result still returns a basic HTML table with no styling, if I inspect in Chrome and browse "Sources" I can see there is no reference to Bootstrap anywhere (I'm not sure if there should be, but just something I noticed)

My table how it appears:

Any help would be appreciated. We are trying to get a proof of concept working so we can buy the full license. Thank you!

KoolReport commented on Feb 7, 2019

You move the

use \koolreport\clients\Bootstrap;

to the report class like this:

class MyReport extends \koolreport\KoolReport
{
    use \koolreport\clients\Bootstrap;
}
gkurl commented on Feb 7, 2019

Yes thank you! This solved it! Thank you for the speedy response :)

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
solved

None