diff --git a/public/index-dist.php b/public/index-dist.php index 3a270b3..76e6e1c 100644 --- a/public/index-dist.php +++ b/public/index-dist.php @@ -89,8 +89,8 @@ function s3MVC_PrependAction2ActionMethodName($action_method_name) { $app_settings_dist_file_path_rel = '.'.DIRECTORY_SEPARATOR."config". DIRECTORY_SEPARATOR.'app-settings-dist.php'; $app_settings_file_missing_error_page_content = <<ERROR: `$app_settings_file_path_rel` not found!

+ ERROR: `$app_settings_file_path_rel` not found!

Please copy `$app_settings_dist_file_path_rel` to `$app_settings_file_path_rel` and configure `$app_settings_file_path_rel` for your @@ -101,29 +101,14 @@ function s3MVC_PrependAction2ActionMethodName($action_method_name) { if( s3MVC_GetCurrentAppEnvironment() !== S3MVC_APP_ENV_DEV ) { - // We are not in a dev environment. - - // 1. Make error message to be sent to the client less detailed + // We are not in a dev environment. + // Make error message to be sent to the client less detailed $app_settings_file_missing_error_page_content = <<SlimPHP 3 Skeleton MVC App Configuration Error

Please check server log file for details.
Goodbye!!!

END; - - // 2. Write full message to log via error_log(...) - // http://php.net/manual/en/function.error-log.php - $log_message = "ERROR:`$app_settings_file_path_rel`not found." - . " Please copy `$app_settings_dist_file_path_rel` to `$app_settings_file_path_rel` and" - . " configure `$app_settings_file_path_rel` for your application's current environment."; - - error_log ( $log_message , 0 ); // message is sent to PHP's system logger, - // using the Operating System's system logging mechanism - // or a file, depending on what the error_log configuration - // directive is set to. - - error_log ( $log_message , 4 ); // message is sent directly to the SAPI logging handler. } $app_settings_file_missing_error_page = << +

SlimPHP 3 Skeleton MVC App Configuration Error

$app_settings_file_missing_error_page_content END; - echo $app_settings_file_missing_error_page; + echo $app_settings_file_missing_error_page; + + // Write full message to log via error_log(...) + // http://php.net/manual/en/function.error-log.php + $log_message = "ERROR: `$app_settings_file_path_rel` not found." + . " Please copy `$app_settings_dist_file_path_rel` to `$app_settings_file_path_rel` and" + . " configure `$app_settings_file_path_rel` for your application's current environment."; + + error_log ( $log_message , 0 ); // message is sent to PHP's system logger, + // using the Operating System's system logging mechanism + // or a file, depending on what the error_log configuration + // directive is set to. + + error_log ( $log_message , 4 ); // message is sent directly to the SAPI logging handler. exit; }