Aiki Configuration Setting list

From Aikiframework wiki

Jump to: navigation, search

Contents

getting config values

You can use two method:

  • using global array $config
  • using function config_get (recommended).
examples:
$timeout= $config["timeout"]
or better
$timeout= config_get("timeout",5000); // 5000 is default value, used if setting is not defined

Notes:

  • config_get is better because it is multisite,multiviews, and multilanguage, allowing different configuration for each site.
  • but, in first bootstrap process, before aiki->config is loaded you MUST use $config[] array.

setting config values

You can use two method:

  • using global array $config
  • using function config_set (recommended).

Values stored in array is not stored permanently. Function config_set, stored the value permanently.

config_set("debug",0);
config_set("debug",1,"*/debugging/*" ); // set the value, but only for 'debugging' view.



setting config values

Locale

  • timezone timezone

Define timezone for aiki script. See php time-zones

Global Vars

  • show_gets true (default) | false

Allowed or not use GET as global vars inserted in page.

im aiki widget use  [GET[search]] 
and set config_set("show_gets",true)
  • show_posts true (default) | false

Allowed or not use GET as global vars inserted in page.

im aiki widget use  [GET[search]] 
and set config_set("show_gets",true)


Debug

  • debug 0 | 1 | 2 | true | false

Show or not certain comments in code (css and html)

false  (deprecated)
true (deprecated)
0 No debug information
1 Show debug information (always)
2 Show debug information if user have permission SystemGOD or ModulesGOD
  • error_level error_level

set the default error level that will be set when config_error_reporting is called and debug mode is false. See error_level

Example:
$config["error_level]= E_ALL;

CSS Cache

  • css_cache directory

Directory that contains cached files. If not defined or is not a directory css will not be cached.

  • css_cache_timeout milliseconds

CSS cache timeout in millisecond ( by default 5000 or 5seconds).

HTML Cache

  • html_cache directory

Directory that contains cached files. If not defined or is not a directory HTML will not be cached.

  • html_cache_timeout milliseconds

HTML cache timeout in millisecond ( by default 5000 or 5seconds).

Extensions

  • extensions_allowed string

Controls which extensions can be loaded. String Can be:

* ALL  : means all extensions will be loaded (default option for backward compatibility )
* NONE : extensions will NOT be loaded.
* a list of allowed extensions separated by coma. For example: "web2date,otherextension"
  • extensions_dir directory

in which subdirectories of aiki root directory, aiki must searchs extensions ( by default "assets/extensions" ).
Separate directories by ",". No starting or ending slash is needed.

Example:"assets/extensions,plugins"
Personal tools