Redirect to welcome or update page

This commit is contained in:
Jonathan Labreuille
2015-11-17 20:11:03 +01:00
parent 225be9f3cd
commit fdbd1245e3
7 changed files with 111 additions and 41 deletions

View File

@ -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();