-
Notifications
You must be signed in to change notification settings - Fork 0
Settings
Alex Torscho edited this page Feb 4, 2015
·
2 revisions
The Backend uses settings to configure the site.
All settings are stored in the DB in settings table. Each setting belongs to a group in setting_groups.
Let's take the first setting as an example. Its structure:
-
group_id: 1 -
name: Site Name -
handle: siteName -
value: Backend -
default: Backend -
description: Will be used in "title" tag and headings.
To use a setting in a controller or a view, simply use the getSetting() function.
<title>User Profile « Users « Backend</title>can be rewritten to
<title>User Profile « Users « {{ getSetting('siteName') }}</title>This way you keep it dynamic and configurable. Feel free to propose new settings for better configuration.
