# |
Feb 14th 2020, 07:20 |
dereuromark |
@lpj145 Why didnt u contribute to the existing plugin? Whats the main difference of yours? |
# |
Feb 14th 2020, 06:35 |
alexdd55976 |
morning |
# |
Feb 14th 2020, 04:05 |
admad |
Make a PR and you will get feedback |
# |
Feb 14th 2020, 03:27 |
lpj145 |
please, tell me if Readme are wrong, i try to be clear and objective as possible. |
# |
Feb 14th 2020, 03:26 |
lpj145 |
@admad is possible add to awesome plugins ? |
# |
Feb 14th 2020, 03:25 |
lpj145 |
i tested with a new project 4.x its works very well with php 7.4. |
# |
Feb 14th 2020, 03:25 |
lpj145 |
@ndm maked for cakephp > 3.2 |
# |
Feb 14th 2020, 03:24 |
lpj145 |
https://github.com/lpj145/express-request |
# |
Feb 13th 2020, 22:13 |
sebastian.krzewinski. |
i solve it |
# |
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`) |