Configurations

Before you begin using Smart Report Engine, it is important to configure the default MYSQL database connection parameters and specify a default login page for private reports. All these settings can be conveniently found in the 'config.php' file, which is typically located at: /sre_config/config.php (in case of the native engine) /sre/SmartReportEngine/src/configs.php (incase of the Laravel package)
Configuration default Description
SRE__DEFAULT__USER__ The default MYSQL connection username.
SRE__DEFAULT__PASS__ The default MYSQL connection Password.
SRE__DEFAULT__HOST__ localhost The default MYSQL connection host name or ip address
SRE__DEFAULT__DB__ The default Mysql connection database name.
SRE__DEFAULT_LOGIN_PAGE_ The default login page to be used for private reports. The engine will redirect any unauthorized access to this page.
SRE__DEFAULT_LOGOUT_PAGE_ Default logout page to be used for private reports. The engine will redirect users to this page when they click 'logout' from any private report.
SRE_DEFAULT_SESSION_NAME Default session name used for your login page
SRE__ALLOWED_REPORT_LANGUAGES__ array("en", "de", "ar", "es", "fr", "it") All allowed languages. There are trasnalation files to all these languages
SRE__DEFAULT_REPORT_LANGUAGE__ en This is the default generated language of your report
SRE_DEFAULT_LAYOUT_ AlignLeft The default layout of generated reports. Supported layouts are: "AlignLeft", "Block", "Stepped", "Outline", "Horizontal", "mobile"