Log message #4205142

# At Username Text
# Sep 23rd 2019, 08:47 alexdd55976 i understand :)
# Sep 23rd 2019, 08:43 jotpe yeah...well could do it, but ~30inputs :grimacing:
# Sep 23rd 2019, 08:38 alexdd55976 add the required manually would be just a workaround
# Sep 23rd 2019, 08:38 alexdd55976 hm
# Sep 23rd 2019, 08:37 jotpe Values are set correctly in the form fields
# Sep 23rd 2019, 08:37 jotpe How do i check? In my Controller i did `$talk->submitter = $this->Talks->Submitters->newEntity()` and set `$this->set(compact('talk','categories'));`
# Sep 23rd 2019, 08:35 alexdd55976 does the view know about the association to the submitter model?
# Sep 23rd 2019, 08:34 alexdd55976 oh.. i read your question wrong
# Sep 23rd 2019, 08:33 jotpe My author model looks like this 'author.0.first_name', still the same with the required fields over there
# Sep 23rd 2019, 08:33 jotpe Nope. Just have one submitter, and it's saving correctly
# Sep 23rd 2019, 08:32 alexdd55976 just a wild guess
# Sep 23rd 2019, 08:32 alexdd55976 really dunno...
# Sep 23rd 2019, 08:32 alexdd55976 doesn'T it have to be `control('submitter.0.first_name,...`??
# Sep 23rd 2019, 08:29 jotpe I have some nested Forms (Talk->Submitter or Talk->Author). Is there any reason, associated forms don't get the required tag, when I add them like this? `<?= $this->Form->control('submitter.first_name', ['label' => __('Vorname')]) ?>`
# Sep 23rd 2019, 08:07 conehead Well if you actually want to get rid of cookies, yes
# Sep 23rd 2019, 08:05 chupa i think i already saw this one and thought of implementing it, but frontend is easy, i thought there was more to do controller-wise
# Sep 23rd 2019, 08:03 conehead https://cookieconsent.osano.com/documentation/about-cookie-consent/
# Sep 23rd 2019, 08:02 chupa yeah, will do that, but i think it should be enough due to the nature of the project
# Sep 23rd 2019, 08:01 conehead Well I am not a lawyer haha. Your company better double checks it with their lawyer if that is alright for you. As far as I know this is currently enough
# Sep 23rd 2019, 07:54 chupa Awesome, so I just need a notification bar and that's it :) ty
# Sep 23rd 2019, 07:51 conehead Without the need to actually disable them. Especially for stuff like logging in
# Sep 23rd 2019, 07:50 conehead But currently I think it is allowed to just add a notice that some cookies are required for the homepage to work
# Sep 23rd 2019, 07:50 conehead Sure it can work without cookies
# Sep 23rd 2019, 07:44 chupa Hey, how are you handling GDPR cookies policy? What do I need to if someone opts out of using cookies? Can CakePHP even work without them?
# Sep 23rd 2019, 07:23 alexdd55976 nah. not really
# Sep 23rd 2019, 07:22 conehead Don't think so. You want to create one?
# Sep 23rd 2019, 07:19 alexdd55976 is there a cakephp podcast?
# Sep 23rd 2019, 06:54 alexdd55976 morning fellows
# Sep 23rd 2019, 06:42 conehead Can't say there is not. I would guess there is not :P
# Sep 23rd 2019, 06:42 jotpe :slightly_smiling_face:
# Sep 23rd 2019, 06:42 jotpe Okay, that's what I also considered, but thought there's a easier way.
# Sep 23rd 2019, 06:41 conehead So might wanna extend FormHelper, check if field is required and append a `*`?
# Sep 23rd 2019, 06:40 conehead I would guess this is part of the label
# Sep 23rd 2019, 06:37 jotpe I have a custom app_form.php with custom templates
# Sep 23rd 2019, 06:37 jotpe But how do I need so check if a field is required?
# Sep 23rd 2019, 06:36 conehead https://api.cakephp.org/3.8/class-Cake.View.Helper.FormHelper.html#%24_defaultConfig
# Sep 23rd 2019, 06:36 conehead https://book.cakephp.org/3.0/en/views/helpers/form.html#customizing-the-templates-formhelper-uses
# Sep 23rd 2019, 06:35 conehead @jotpe create a default template and set it in appview
# Sep 23rd 2019, 06:25 jotpe How can I change the templates of FormHelper so that the Labels of required Controls get a hint htat it's required? E.g. `<label>E-Mail <strong>*</strong></label>`
# Sep 23rd 2019, 06:18 jotpe @valerij.bancer I had the same issue when migrating from 2.x to 3.x and ended up doing something like this https://www.dereuromark.de/2010/06/24/static-enums-or-semihardcoded-attributes/ but in Entities with a trait.
# Sep 23rd 2019, 06:15 jotpe Morning