Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Could you please show me an example ? I tried but it give me errors, probably due to path and namespace misconfiguration.
Say for example I would like to include one of the examples in
/index.php
And this is the start content of your database_connection basic example located at:
/Libraries/koolreport/examples/reports/basic/database_connection
<?php
require_once "SakilaRental.php";
$report = new SakilaRental;
$report->run();
?>
I'm using the original code by one of yours examples, then the path is already:
require_once "../../../../koolreport/autoload.php";
where the examples are located at:
localhost/Private/koolreport/examples/reports/basic/database_connection_sqlsrv/index.php
And I would like to solve in one of these ways:
1) Move my code/example to root
2) Include the example index.php in one root php file
Hi Richi,
If your folder for koolreport is /Libraries/koolreport/ and your report class files are in /Libraries/koolreport/myreports/, says /Libraries/koolreport/myreports/myreport1.php then in the file report1.php you should include the following path:
require_once "../../autoload.php";
...
And if your index.php is in the root folder (i.e the same level with Libraries) then you should include the following path in index.php:
require_once "Libraries/koolreport/myreports/myreport1.php";
...
Please let us know if it solves your problem. Thanks!
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo