Log message #4226998

# At Username Text
# Feb 13th 2020, 19:00 ricksaccous oh ok kewl
# Feb 13th 2020, 18:59 alexmax they'll have information persisted across postbacks and they show up in request data as an array
# Feb 13th 2020, 18:58 alexmax actually you can create form fields with dotted names and do the "multi" yourself
# Feb 13th 2020, 18:35 ricksaccous if they aren't being saved it's fine to just say it's a string (I think) and then specify them as multiselect in the form
# Feb 13th 2020, 18:33 ricksaccous you can multiselect them?
# Feb 13th 2020, 18:23 alexmax In a modelless form, what is the appropriate schema to use for a field of array type (a field like `foo.bar`)
# Feb 13th 2020, 16:43 sebastian.krzewinski. :)
# Feb 13th 2020, 16:35 sebastian.krzewinski. this auth making me redirection loop...
# Feb 13th 2020, 16:24 ricksaccous or something
# Feb 13th 2020, 16:24 ricksaccous i think that's used for checkboxes instead of label
# Feb 13th 2020, 16:24 ricksaccous i'm shooting in the dark but that confused me for a bit too
# Feb 13th 2020, 16:23 ricksaccous nestingLabel
# Feb 13th 2020, 16:23 ricksaccous @alexmax are you aware of nestinglabel?
# Feb 13th 2020, 16:20 sebastian.krzewinski. in pagescontroler
# Feb 13th 2020, 16:20 sebastian.krzewinski. adding *public* *function* beforeFilter(\*Cake*\*Event*\*EventInterface* $event)     {         *parent*::beforeFilter($event);         $this->Authentication->allowUnauthenticated(['index', 'display']);             }
# Feb 13th 2020, 16:20 sebastian.krzewinski. ok.... i solvet it
# Feb 13th 2020, 16:08 sebastian.krzewinski. ```$this->Authentication->allowUnauthenticated(['??????????']);```
# Feb 13th 2020, 16:07 sebastian.krzewinski. for now i can log in. but auth is working on all app
# Feb 13th 2020, 16:07 sebastian.krzewinski. and create new login place
# Feb 13th 2020, 16:06 sebastian.krzewinski. how to allow home and pages to not auth?
# Feb 13th 2020, 15:49 alexmax Yeah this really does seem like it's forgotten about, because taking a closer look at the generated HTML for the checkboxes, not only am I seeing no labels, but I'm seeing all of the options crammed into an `options` attribute in the input tag, which isn't even wrong.
# Feb 13th 2020, 15:48 alexmax so I can create an issue out of it.
# Feb 13th 2020, 15:47 alexmax Maybe I'll spend a little time and crank out a minimal reproduction when I have a moment.
# Feb 13th 2020, 15:46 alexmax Seems to me that either there should be a default template for `checkboxContainer` or `multiple => checkbox` should do something different than what it's doing now, and I'm not sure which is the correct play.
# Feb 13th 2020, 15:46 alexmax Well I'm not sure what the correct behavior is here. I was just pointing it because it might be some corner case functionality that was forgotten about, and maybe these tests can be changed to something else that is the intended behavior.
# Feb 13th 2020, 15:45 noel If it's in the test suite then maybe you can just copy it from there and do a PR?
# Feb 13th 2020, 15:44 alexmax Strangely enough, the only time I can find this template by name is in the test suite
# Feb 13th 2020, 15:44 alexmax https://github.com/cakephp/cakephp/search?q=checkboxContainerandunscoped_q=checkboxContainer
# Feb 13th 2020, 15:43 alexmax Wonder if that version has the same problem.
# Feb 13th 2020, 15:43 alexmax We're in the process of upgrading to 3.8 anyway
# Feb 13th 2020, 15:43 noel @sebastian.krzewinski. depends on whether you're using cakePHP 3.8 or 4.
# Feb 13th 2020, 15:42 alexmax Yeah but again, 3.5, old version, probably not supported, yada yada yada
# Feb 13th 2020, 15:42 noel @alexmax It does sound broken to me. Sounds like the code was designed to look for a container when you specify `multiple` but that wasn't implemented for checkbox.
# Feb 13th 2020, 15:41 sebastian.krzewinski. better use book from cake 3.8 then 4?
# Feb 13th 2020, 15:41 neon1024 https://book.cakephp.org/3/en/views/helpers/form.html#customizing-the-templates-formhelper-uses
# Feb 13th 2020, 15:40 alexmax Yeah I found it very odd that it was looking for a template that literally did not exist (or at least I couldn't find)
# Feb 13th 2020, 15:40 neon1024 I tend to do this if I need to change the odd field in a single form. If I need it elsewhere I make a templates file
# Feb 13th 2020, 15:40 neon1024 You can use `$this->Form->setConfig('templates.checkbox', $myNewTemplate)`
# Feb 13th 2020, 15:39 neon1024 I tend to replace this https://github.com/cakephp/cakephp/blob/3.5.18/src/View/Helper/FormHelper.php#L106
# Feb 13th 2020, 15:39 alexmax Cake 3.5 btw
# Feb 13th 2020, 15:38 alexmax Without one, I get an error message saying it can't find a template for `checkboxContainer`. Should there be one?