source: platform/config/settings.yml @ 1

Last change on this file since 1 was 1, checked in by dungnv, 11 years ago
File size: 5.9 KB
Line 
1prod:
2  .settings:
3    no_script_name:           off
4
5dev:
6  .settings:
7    error_reporting:        <?php echo (E_ALL | E_STRICT)."\n" ?>
8    web_debug:              on
9    cache:                  off
10    no_script_name:         off
11    etag:                   off
12
13test:
14  .settings:
15    error_reporting:        <?php echo (E_ALL | E_STRICT & ~E_NOTICE)."\n" ?>
16    cache:                  off
17    web_debug:              off
18    no_script_name:         off
19    etag:                   off
20
21all:
22  .settings:
23    # Cache settings
24    lazy_cache_key:         on        # Delays creation of a cache key until after checking whether an action or partial is cacheable
25
26#all:
27#  .actions:
28#    default_module:         default   # Default module and action to be called when
29#    default_action:         index     # A routing rule doesn't set it
30#
31#    error_404_module:       default   # To be called when a 404 error is raised
32#    error_404_action:       error404  # Or when the requested URL doesn't match any route
33#
34#    login_module:           default   # To be called when a non-authenticated user
35#    login_action:           login     # Tries to access a secure page
36#
37#    secure_module:          default   # To be called when a user doesn't have
38#    secure_action:          secure    # The credentials required for an action
39#
40#    module_disabled_module: default   # To be called when a user requests
41#    module_disabled_action: disabled  # A module disabled in the module.yml
42#
43#    unavailable_module:     default   # To be called when a user requests a page
44#    unavailable_action:  unavailable  # From an application disabled via the available setting below
45#
46#  .settings:
47#    available:              on        # Enable the whole application. Switch to off to redirect all requests to the unavailable module and action.
48#
49#    # Optional features. Deactivating unused features boots performance a bit.
50#    use_database:           on        # Enable database manager. Set to off if you don't use a database.
51#    use_security:           on        # Enable security features (login and credentials). Set to off for public applications.
52#    use_flash:              on        # Enable flash parameter feature. Set to off if you never use the set_flash() method in actions.
53#    i18n:                   off       # Enable interface translation. Set to off if your application should not be translated.
54#    check_symfony_version:  off       # Enable check of symfony version for every request. Set to on to have symfony clear the cache automatically when the framework is upgraded. Set to off if you always clear the cache after an upgrade.
55#    use_process_cache:      on        # Enable symfony optimizations based on PHP accelerators. Set to off for tests or when you have enabled a PHP accelerator in your server but don't want symfony to use it internally.
56#    compressed:             off       # Enable PHP response compression. Set to on to compress the outgoing HTML via the PHP handler.
57#    check_lock:             off       # Enable the application lock system triggered by the clear-cache and disable tasks. Set to on to have all requests to disabled applications redirected to the $sf_symfony_data_dir/web/arrors/unavailable.php page.
58#
59#    # Output escaping settings
60#    escaping_strategy:      bc        # Determines how variables are made available to templates. Accepted values: bc, both, on, off. The value off deactivates escaping completely and gives a slight boost.
61#    escaping_method:   ESC_ENTITIES   # Function or helper used for escaping. Accepted values: ESC_RAW, ESC_ENTITIES, ESC_JS, ESC_JS_NO_ENTITIES.
62#
63#    # Routing settings
64#    suffix:                 .         # Default suffix for generated URLs. If set to a single dot (.), no suffix is added. Possible values: .html, .php, and so on.
65#    no_script_name:         off       # Enable the front controller name in generated URLs
66#
67#    # Validation settings, used for error generation by the Validation helper
68#    validation_error_prefix:    ' &darr;&nbsp;'
69#    validation_error_suffix:    ' &nbsp;&darr;'
70#    validation_error_class:     form_error
71#    validation_error_id_prefix: error_for_
72#
73#    # Cache settings
74#    cache:                  off       # Enable the template cache
75#    etag:                   on        # Enable etag handling
76#    lazy_cache_key:         off       # Delays creation of a cache key until after checking whether an action or partial is cacheable (defaults to false for backward compatibility)
77#
78#    # Logging and debugging settings
79#    web_debug:              off       # Enable the web debug toolbar
80#    error_reporting:        <?php echo (E_PARSE | E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_USER_ERROR)."\n" ?> # Determines which events are logged. The default value is E_PARSE | E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_USER_ERROR = 341
81#
82#    # Assets paths
83#    rich_text_js_dir:       js/tiny_mce
84#    prototype_web_dir:      /sf/prototype
85#    admin_web_dir:          /sf/sf_admin
86#    web_debug_web_dir:      /sf/sf_web_debug
87#    calendar_web_dir:       /sf/calendar
88#
89#    # Helpers included in all templates by default
90#    standard_helpers:       [Partial, Cache, Form]
91#
92#    # Activated modules from plugins or from the symfony core
93#    enabled_modules:        [default]
94#
95#    # Charset used for the response
96#    charset:                utf-8
97#
98#    # Miscellaneous
99#    strip_comments:         on         # Remove comments in core framework classes as defined in the core_compile.yml
100#    autoloading_functions:  ~          # Functions called when a class is requested and this it is not already loaded. Expects an array of callables. Used by the framework bridges.
101#    timeout:                1800       # Session timeout, in seconds
102#    max_forwards:           5
103#    path_info_array:        SERVER
104#    path_info_key:          PATH_INFO
105#    url_format:             PATH
106#
107#    # ORM
108#    orm:                    propel
Note: See TracBrowser for help on using the repository browser.