What is the general practice way to use a dwoo template to render checkboxes and radio buttons that already have a state?
I’m using a serialized array to save the user’s PrivacySettings, here’s the Model:
User [
PrivacySettings => [
'email-notifications' => false,
'newsletter-notifications' => true,
]
]
In my template:
{checkbox value=true inputName="PrivacySettings[notification-setting]" default=$User->PrivacySettings['email-notifications'] label="Allow site to send me messages"}
Is there another step I’m missing to access the $User->PrivacySettings property? Apologies if this is a really dumb question, my experience is in Twig and Blade. Thank you!