Log message #4227016

# At Username Text
# Feb 13th 2020, 21:29 ricksaccous you have placeholder in a separate array as the third parameter
# Feb 13th 2020, 21:29 ricksaccous array of options is one parameter
# Feb 13th 2020, 21:28 sebastian.krzewinski. <?= $this->Form->control('email', ['required' => true],['placeholder' => 'test']) ?> anyone know why this placeholder is not working?
# Feb 13th 2020, 21:27 sebastian.krzewinski. i have maybe stupid Question again :)
# Feb 13th 2020, 20:55 sebastian.krzewinski. its wokrking <3
# Feb 13th 2020, 20:54 sebastian.krzewinski. ok i will try it
# Feb 13th 2020, 20:41 ndm That's untested, but generally that's how you could do it
# Feb 13th 2020, 20:40 ndm ```$passed = $this->request->getParam('pass'); $allowed = ['home', 'foo', 'bar', 'baz']; if(isset($passed[0]) andand in_array($passed[0], $allowed)) { $this->Authentication->addUnauthenticatedActions(['display']); }```
# Feb 13th 2020, 20:37 ndm There are no `index` and `view` actions in your `PagesController`, there's only a single action named `display` which handles access to all pages by evaluating the passed page name. You'd have to check the current name, and allow access to the `display` action instead. Something like
# Feb 13th 2020, 20:34 sebastian.krzewinski. https://i.imgur.com/onvqt44.gifv
# Feb 13th 2020, 20:31 ndm What do these two things even have to do with each other? It's hard to follow without additional explanation of what's actually happening
# Feb 13th 2020, 20:30 sebastian.krzewinski. idk..
# Feb 13th 2020, 20:30 sebastian.krzewinski. its seems to be not working: $this->Authentication->addUnauthenticatedActions(['index', 'view']); in pages
# Feb 13th 2020, 20:28 sebastian.krzewinski. but now i cant join to homepage
# Feb 13th 2020, 20:27 sebastian.krzewinski. i used this method for new login page: $this->viewBuilder()->setLayout('login');
# Feb 13th 2020, 20:18 sebastian.krzewinski. coool
# Feb 13th 2020, 20:18 sebastian.krzewinski. go sleep for a while .. back and you see not working auth
# Feb 13th 2020, 20:17 sebastian.krzewinski. ...wtf
# 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.