# |
Nov 30th 2017, 10:19 |
birdy247 |
:slightly_smiling_face: |
# |
Nov 30th 2017, 10:19 |
neon1024 |
Yes! Work chocolate advert calendars have been given out! :) |
# |
Nov 30th 2017, 10:19 |
neon1024 |
You could do something similar to the form input control with the Security Component and CSRF tokens anyway |
# |
Nov 30th 2017, 10:18 |
neon1024 |
But to me they’re edge cases |
# |
Nov 30th 2017, 10:18 |
neon1024 |
Or if you want a form where only a few fields are editable and the rest are disabled, but you still set the complete entity to the form context |
# |
Nov 30th 2017, 10:18 |
neon1024 |
If you have security concerns with some forms perhaps |
# |
Nov 30th 2017, 10:17 |
neon1024 |
You’d wear your fingerprints off! |
# |
Nov 30th 2017, 10:17 |
neon1024 |
Well you don’t want to set the accessible fields every time you save |
# |
Nov 30th 2017, 10:16 |
birdy247 |
is it just a shorthand for accessibleFields |
# |
Nov 30th 2017, 10:15 |
birdy247 |
I dont see why you need the fieldList if you can se the accessibleFields directly on the entity when patching |
# |
Nov 30th 2017, 10:14 |
neon1024 |
Otherwise the save override option would not work |
# |
Nov 30th 2017, 10:14 |
neon1024 |
My guess would be that setting it as a save option takes precedent over the entity setting |
# |
Nov 30th 2017, 10:14 |
neon1024 |
Only the source code will know |
# |
Nov 30th 2017, 10:13 |
birdy247 |
so would accessible fields trump the fieldList? |
# |
Nov 30th 2017, 10:13 |
birdy247 |
But both are set when patching the entity |
# |
Nov 30th 2017, 10:11 |
neon1024 |
One is global, and one is not. |
# |
Nov 30th 2017, 10:10 |
birdy247 |
https://book.cakephp.org/3.0/en/orm/saving-data.html#changing-accessible-fields |
# |
Nov 30th 2017, 10:10 |
birdy247 |
and this: |
# |
Nov 30th 2017, 10:10 |
ghoritrilochan |
okk thxx |
# |
Nov 30th 2017, 10:10 |
birdy247 |
https://book.cakephp.org/3.0/en/orm/saving-data.html#avoiding-property-mass-assignment-attacks |
# |
Nov 30th 2017, 10:10 |
birdy247 |
What is the difference between this: |
# |
Nov 30th 2017, 10:09 |
neon1024 |
Your images are nothing to do with CakePHP |
# |
Nov 30th 2017, 10:09 |
ghoritrilochan |
i know basic knowledge of css but cakephp in image path in i have problem |
# |
Nov 30th 2017, 10:07 |
ceeram |
@maymeow we use it for clone, commit, push, but i think what you want is doable |
# |
Nov 30th 2017, 09:59 |
neon1024 |
I think this is something you can Google for yourself |
# |
Nov 30th 2017, 09:59 |
neon1024 |
@ghoritrilochan, https://www.w3schools.com/css/css_background.asp |
# |
Nov 30th 2017, 09:58 |
ghoritrilochan |
how to add background-image |
# |
Nov 30th 2017, 09:56 |
neon1024 |
Oh, newEntity takes options like patchEntity! My bad, I should have looked first ;) |
# |
Nov 30th 2017, 09:55 |
neon1024 |
I want to pass in a default value for a property in my entity, but when my add template renders, my name field is marked as having a validation error |
# |
Nov 30th 2017, 09:55 |
neon1024 |
Why does creating a new entity, setting a single field, cause validation? |
# |
Nov 30th 2017, 09:54 |
maymeow |
@ceeram looking for library that allows me to manage git repositories (even --bare) from php application |
# |
Nov 30th 2017, 09:54 |
ghoritrilochan |
how to solve plz help me |
# |
Nov 30th 2017, 09:53 |
ghoritrilochan |
404 not found image: <li style="background-image: url(images/slide_1.jpg);"> |
# |
Nov 30th 2017, 09:52 |
ghoritrilochan |
hii.. |
# |
Nov 30th 2017, 09:51 |
ceeram |
@maymeow not sure what you are looking for, but we use this https://github.com/ggioffreda/git |
# |
Nov 30th 2017, 09:05 |
neon1024 |
Morning all |
# |
Nov 30th 2017, 08:50 |
spriz |
thanks a lot @admad!! |
# |
Nov 30th 2017, 08:50 |
spriz |
Ah ffs - I’m missing a `.` in the `extensions` key |
# |
Nov 30th 2017, 08:49 |
spriz |
Current file is: https://gist.github.com/Spriz/a1a7da78167fbf2fe85b63c18add6d0c |
# |
Nov 30th 2017, 08:49 |
spriz |
Ah, ofc - I’ll try to copy that @admad. |
# |
Nov 30th 2017, 08:48 |
admad |
@spriz https://github.com/cakephp/cakephp/blob/fbd230b1ff56a7563473747de5ffde1a99959b5f/.stickler.yml#L3 |