Treat PHP warnings and notices as errors
Report all PHP errors by [error_reporting(E_ALL)](https://www.php.net/manual/en/function.error-reporting.php) and treat PHP warning and notices as errors. If [Debug](generatesetup.html?id=debug) is enabled, the setting will also be enabled.
Show source code with error (development)
Show detailed error info with source code when runtime error occurs. For use with "development" environment (see below) only. If [Debug](generatesetup.html?id=debug) is enabled, the setting will also be enabled.
Log error to file
Log SQL and runtime error to file. If [Debug](generatesetup.html?id=debug) is enabled, the setting will also be enabled. The log files for above can be found at the [Log file folder](phpsetup.html?id=logging) you specified and are named as *log-yyyy-mm-dd.log*. You can enable this setting for "production" environment (see below) also. During production, error messages must not be shown to the end users, but you still can log error messages in log files for debugging purposes.
Environment
Environment of application. Possible values: development or production. Default value is development. If [Debug](generatesetup.html?id=debug) is enabled, the value will be set to development. After debugging/development, before deploying to production server, you should generate your project again with enviroment as production, then the application will use the config.production.php instead of the config.development.php. The config.production.php contains production database connection, SMTP server, JWT settings, etc..
Notes Before generating your project for deployment, you should also review if you need to change the following advanced settings:
  • Log error to file (For debugging your production site with the [Debug](generatesetup.html?id=debug) setting disabled)
  • Compile container for production (Consider this if you have a very large number of tables)
  • Generate route groups (Recommended to disable if you don't need routes like /cars/list)
  • Use route cache (Consider this if you have a very large number of tables)
  • Compress project .js (Recommended)
  • Compress project .css (Recommended)