This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hello guys!, i'm trying to use a Settings Model, there is a few default values, (like the example in the docs), and i can see the values stored in the database (table system_settings), but i can't edit them, all form fields into the backend are empty.
How i can show the values into the form fields?
Thank you
This sounds similar to an issue I once had. What setting/field names are you using? Are you having the problem with all settings, or only some?
@dshoreman thank you for your reply, i fixed the issue, the issue was that i was writing an "object" in the Settings model, like the example says:
// Set object values
$settings = Settings::instance();
$settings->api_key = 'ABCD';
$settings->save();
I just removed this and is working
1-3 of 3