Log message #4227024

# At Username Text
# Feb 13th 2020, 22:13 sebastian.krzewinski. nevermind
# Feb 13th 2020, 22:13 sebastian.krzewinski. 4
# Feb 13th 2020, 21:47 ricksaccous you are using cakephp3 right?
# Feb 13th 2020, 21:46 ricksaccous it only takes 2 parameters
# Feb 13th 2020, 21:46 ricksaccous @sebastian.krzewinski. https://book.cakephp.org/3/en/views/helpers/form.html#creating-form-controls
# Feb 13th 2020, 21:44 sebastian.krzewinski. ok its working when i do form->input not control
# Feb 13th 2020, 21:36 sebastian.krzewinski. but not in form
# Feb 13th 2020, 21:36 sebastian.krzewinski. then how should be looks like? in other place its working
# 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']);             }