Constants and Globals

Constants Paths:

  • GF_PLUGIN_PATH – Absolute path to the Gear Framework plugin
  • GF_APP_PATH – Absolute path to your application
  • GF_CONTROLLER_PATH – Absolute path to your application’s controllers folder
  • GF_DATA_PATH – Absolute path to your application’s data folder
  • GF_INCLUDE_PATH – Absolute path to your application’s includes folder
  • GF_MODEL_PATH – Absolute path to your application’s models folder
  • GF_PUBLIC_PATH – Absolute path to your application’s public folder
  • GF_SCRIPT_PATH – Absolute path to your application’s scripts folder
  • GF_TEMP_PATH – Absolute path to your application’s temp folder
  • GF_VIEW_PATH – Absolute path to your application’s views folder
  • GF_ERROR_LOG – Absolute path to your application’s error log file
  • GF_SITE_PATH – Absolute path to the root of you website

 

Constant URLs:

  • GF_SITE_URL – URL of your website
  • GF_PUBLIC_URL – URL to your application’s public folder

 

Globals:

  • gf_debug – Enables/Disables debugging
  • gf_query_debug – Enables/Disables query debugging
  • gf_post_resubmit – Enables/Disables post resubmission
  • gf_before_output – String to prepend with your application output
  • gf_after_output – String to append with your application output
  • gf_error_array – Contains the error feed
  • gf_success_array – Contains the success feed
  • gf_debug_array – Contains the debug feed
  • gf_message_array – Contains the custom message feed
  • gf_css_array – Contains the CSS files to load
  • gf_js_array – Contains the JS files to load
  • gf_roles_allowed_access_array – Contains the allowed roles per page
  • gf_roles_denied_access_array – Contains the denied roles per page
  • gf_access_denied_message – Contains the message to be displayed to denied users
  • gf_require_js – Enable/Disable the JavaScript requirement

 

Up Next: Using MVC