Redirect to welcome or update page
This commit is contained in:
@ -28,6 +28,13 @@ class Setting extends Model {
|
||||
}
|
||||
}
|
||||
|
||||
public static function setValue($key, $value) {
|
||||
return Setting::createOrUpdate(array(
|
||||
'name' => $key,
|
||||
'value' => $value
|
||||
));
|
||||
}
|
||||
|
||||
public static function getAll() {
|
||||
$settingsCollection = self::findMany();
|
||||
$settings = array();
|
||||
|
Reference in New Issue
Block a user