Skip to content
Webuccino Products edited this page Aug 15, 2023 · 2 revisions

The file structure of Smart Report Engine - The community edition

  • Inside the SmartReportEngine directory, you’ll find the core components of Smart Report Engine.
  • The sre_reports directory serves as the repository for all automatically generated reports. When a new report is created by Smart Report Engine, a corresponding sub-directory is automatically generated under sre_reports, using the report’s name. Within this automatically generated subdirectory, the content of the new report is placed. For instance, if a report named “Sales” is automatically generated, you’ll find it at /sre_reports/repSales/repSales.php. Furthermore, all configuration details specific to this automatically generated report will be located at /sre_reports/repSales/config.php.
  • In situations where a name isn’t explicitly assigned to the report, Smart Report Engine will assign a name based on its creation timestamp. This results in a structure similar to: sre_reports/rep1691646585168400/rep1691646585168400.php.
  • The primary configuration of Smart Report Engine should be located in sre_config/config.php. Inside this file, you are required to establish the connection to your MySQL database, as this connection is crucial for the generation of your reports.
  • Several examples are available within the /examples directory. To execute these examples successfully, it’s necessary to import an existing MySQL “items” table from the /db/example.sql file. Importing this file will create an “Items” table within your MySQL database. To execute any of these examples, just access their URLs from your web browser. This will enable you to view the generated report based on the code in each example.

Following are some reports generated by Smart Report Engine: