Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Description


mixed setting(string $setting_name)

Returns a value of a setting defined in an Apps app.json file.

Parameters


$setting_name

Name of the setting to return.

Examples


// Prints the value of the setting foo
echo setting('foo');
 
// Setting used in an IF statement if it holds boolean values
if (setting('foo')) {
 
}
 
// Used in HTML templates
{{ setting('foo') }}
  • No labels