Description
...
language | php |
---|
...
mixed
...
setting(string
...
$setting_name)
...
Returns a value of a setting defined in an Apps app.json file.Apps Install.php file. These settings can then be edited by site Admins from their AdminCP.
Parameters
...
$setting_name
Name of the setting to return.
Examples
...
Code Block | ||
---|---|---|
| ||
// 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') }} |