Implement global settings
This commit is contained in:
@@ -109,7 +109,7 @@ $autoload['language'] = array();
|
||||
|
|
||||
*/
|
||||
|
||||
$autoload['model'] = array('user', 'project', 'share');
|
||||
$autoload['model'] = array('user', 'project', 'share', 'setting');
|
||||
|
||||
|
||||
/* End of file autoload.php */
|
||||
|
||||
@@ -84,6 +84,24 @@ $config['auth/settings'] = array(
|
||||
),
|
||||
);
|
||||
|
||||
/**
|
||||
* Rules for global settingsa.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
$config['settings/index'] = array(
|
||||
array(
|
||||
'field' => 'offline',
|
||||
'label' => _('Offline mode'),
|
||||
'rules' => 'required|integer',
|
||||
),
|
||||
array(
|
||||
'field' => 'offline_message',
|
||||
'label' => _('Offline message'),
|
||||
'rules' => 'trim',
|
||||
),
|
||||
);
|
||||
|
||||
/**
|
||||
* Rules for creating users.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user