KoolReport's Forum

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

Conditionally use of \koolreport\amazing\Theme; #2227

Closed Ron opened this topic on on Jul 22, 2021 - 1 comments

Ron commented on Jul 22, 2021

Hi I am using in my reports the "use \koolreport\amazing\Theme;" when the report is opened in a new windows outside my application so everything looks fine BUT when I embed the report inside one of my pages then the Amazing Theme effect my own Bootstrap them and everything becomes like a big mess. I have a parameter that tell the report in post if the report is opened separately or embedded inside the page. can I use this parameter to conditionally decide if to include the "use \koolreport\amazing\Theme;"

require_once APPPATH."Libraries/koolreport/core/autoload.php";
use \koolreport\cube\processes\Cube;
use \koolreport\processes\Filter;
class Class_schedule extends \koolreport\KoolReport
{
    //use \koolreport\amazing\Theme;

    var $classList = null;

    function settings()
    {
    }
} 
Ron commented on Jul 25, 2021

issue solved.

function setup()
    {
        if ( .... ) {
            $this->theme = new \koolreport\amazing\AmazingTheme($this);
        }
    }

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