KoolReport's Forum

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

Multiple reports #1986

Open Gabriela Matheus opened this topic on on Mar 22, 2021 - 3 comments

Gabriela Matheus commented on Mar 22, 2021

Hi!

I need to make some screens of different reports, but I tried to duplicate the index.php, report.php and report.view.php but give the following error in the second report:

 Uncaught Error: Class "koolreport\widgets\koolphp\Table" not found

But when I put it in the first report I created, it works. Am I creating more than one report correctly or is the error in the folder directory? Thank you for your attention.

Sebastian Morales commented on Mar 23, 2021

Gabriela, pls post your report's setup and view php code where this error happened. Tks,

Gabriela Matheus commented on Mar 23, 2021

Setup

protected function setup()
    {
         
 

  
         $this->src('conexao')
   
        ->query(" query here ")

        ->pipe($this->dataStore("resultDados"));  
    }

view

  <?php
\koolreport\widgets\koolphp\Table::create(array(
    "dataSource"=>$this->dataStore('resultDados'),
    
));
?>
KoolReport commented on Mar 24, 2021

Did you include the koolreport library:

require_once "/path/to/koolreport/core/autoload.php";

If not, please add.

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
None yet

None