Important Constants


Introduction

There are a number of important constants that Pyro's addons require to work properly. You can pull these into your public theme like so:

{% verbatim %}
{{ constants() }}
{% endverbatim %}

This will bring in a number of javascript constants similar to the following:

{% verbatim %}
var APPLICATION_URL = "{{ url() }}";
var APPLICATION_REFERENCE = "{{ env('APPLICATION_REFERENCE') }}";
var APPLICATION_DOMAIN = "{{ env('APPLICATION_DOMAIN') }}";
var CSRF_TOKEN = "{{ csrf_token() }}";
var APP_DEBUG = "{{ config_get('app.debug') }}";
var APP_URL = "{{ config_get('app.url') }}";
var REQUEST_ROOT = "{{ request_root() }}";
var REQUEST_ROOT_PATH = "{{ parse_url(request_root()).path }}";
var TIMEZONE = "{{ config_get('app.timezone') }}";
var LOCALE = "{{ config_get('app.locale') }}";
{% endverbatim %}