# |
Jan 18th 2019, 11:48 |
neon1024 |
Actually, I’ll try Rector :slightly_smiling_face: |
# |
Jan 18th 2019, 11:46 |
neon1024 |
Might see if I can get @dereuromark upgrade skeleton shell going again |
# |
Jan 18th 2019, 11:44 |
neon1024 |
I am sad kitty |
# |
Jan 18th 2019, 11:44 |
neon1024 |
https://github.com/cakephp/app/blob/master/src/Application.php#L33 |
# |
Jan 18th 2019, 11:44 |
neon1024 |
Effin inheritDoc! |
# |
Jan 18th 2019, 11:43 |
neon1024 |
I’m finding lots of changes to the app skeleton for upgrading to 3.7 |
# |
Jan 18th 2019, 11:43 |
neon1024 |
Are there change notes for cakephp/app? |
# |
Jan 18th 2019, 11:40 |
neon1024 |
To know what bake would produce now for the optional validation for creating of primary key ids |
# |
Jan 18th 2019, 11:40 |
neon1024 |
Not too up on my Twig to understand this https://github.com/cakephp/bake/blob/master/src/Template/Bake/Model/table.twig#L91 |
# |
Jan 18th 2019, 11:38 |
neon1024 |
Soo what about integers? |
# |
Jan 18th 2019, 11:38 |
neon1024 |
@deprecated Use allowEmptyString(), allowEmptyArray(), allowEmptyFile(), * allowEmptyDate(), allowEmptyTime() or allowEmptyDateTime() instead. |
# |
Jan 18th 2019, 11:32 |
david |
Answer myself: I forgot to load the plugin in bootstrap: Plugin::load('Proffer'); |
# |
Jan 18th 2019, 11:23 |
david |
I am using a vendor with a custom shell task (proffer). bin/cake proffer But, my terminal throws an exception: Unknown command `cake proffer`. How is the way to execute a vendor shell task? |
# |
Jan 18th 2019, 11:22 |
david |
morning :slightly_smiling_face: |
# |
Jan 18th 2019, 09:57 |
slackebot1 |
Crud: json api converter pick it up so it returns my entity as json:api format? Thanks in advance |
# |
Jan 18th 2019, 09:57 |
roel |
Hello everyone, currently I am using the Crud Json Api plugin for my api, all the "standard" Crud functions work perfectly. I have made a custom function in one of my api controllers, when I set a variable (with `_serialize`) to the view it doesn't seem to trigger the `DynamicEntitySchema` and convert it into a json:api format (https://crud-json-api.readthedocs.io/en/latest/listener-configuration/schemas.html) My question is: How can I let the |
# |
Jan 18th 2019, 09:48 |
mocelle |
How can i search encrypted data from db? |
# |
Jan 18th 2019, 09:33 |
k4t |
thank you |
# |
Jan 18th 2019, 09:32 |
admad |
Yes |
# |
Jan 18th 2019, 09:32 |
k4t |
and latter param will always win, right? no matter of environment |
# |
Jan 18th 2019, 09:32 |
admad |
Knowing whether a field/input was present or not is required mainly for POST for validation purposes |
# |
Jan 18th 2019, 09:31 |
admad |
s/different/differentiate |
# |
Jan 18th 2019, 09:30 |
admad |
If you are using GET then depending on your use case you can turn off the hidden field |
# |
Jan 18th 2019, 09:29 |
admad |
The hidden field is necessary cause by default if checkbox is unchecked html won't produce anything, so you won't be able to different when the checkbox wasn't checked or it didn't exist at all in form |
# |
Jan 18th 2019, 09:28 |
admad |
@k4t yes that's expected, the 1st with 0 is for the hidden field. The latter with 1 will be present only when checkbox is checked. |
# |
Jan 18th 2019, 09:19 |
k4t |
thank you |
# |
Jan 18th 2019, 09:19 |
k4t |
ok, just wanted to know wheater I created a bug or it is normal |
# |
Jan 18th 2019, 09:18 |
neon1024 |
Or, you implement PRG |
# |
Jan 18th 2019, 09:18 |
neon1024 |
You either disable the hiddenField or live with two query params |
# |
Jan 18th 2019, 09:18 |
neon1024 |
Then there is nothing you can do. |
# |
Jan 18th 2019, 09:17 |
k4t |
I am getting: suche?trackTopic=0andtrackTopic=1 instead of suche?trackTopic=1 which looks weird... and I can not disable hiddenField |
# |
Jan 18th 2019, 09:17 |
neon1024 |
Wat |
# |
Jan 18th 2019, 09:16 |
k4t |
so this is normal that paramter in querystring is not overwritten? |
# |
Jan 18th 2019, 09:16 |
neon1024 |
Right, so where does the witch come into things? |
# |
Jan 18th 2019, 09:16 |
k4t |
and I can turn it off like you siad |
# |
Jan 18th 2019, 09:16 |
k4t |
yes, yes, I know |
# |
Jan 18th 2019, 09:16 |
neon1024 |
YOu can turn it off with the `hiddenField => false` option |
# |
Jan 18th 2019, 09:15 |
neon1024 |
That’s just because by default the Cake FormHelper will create a hidden field |
# |
Jan 18th 2019, 09:15 |
k4t |
I think it should be only: suche?trackTopic=1 |
# |
Jan 18th 2019, 09:15 |
k4t |
I am not sure if this is normal behavior but when I create form with checkbox called "trackTopic" and when I submit that form with checked checkbox via GET then my querystring in url contains duplicated parameters: suche?trackTopic=0andtrackTopic=1 |
# |
Jan 18th 2019, 09:13 |
neon1024 |
@kat |