# |
Nov 18th 2019, 15:10 |
neon1024 |
..but if you needed to do it I’d write an entity accessor method which wrapped `getErrors()` and returned your custom format |
# |
Nov 18th 2019, 15:10 |
neon1024 |
Changing the way an entity reports it’s errors seems pointless |
# |
Nov 18th 2019, 15:10 |
neon1024 |
Errors are keyed by the name of the validation rule |
# |
Nov 18th 2019, 14:55 |
lpj145 |
without write some logic ? |
# |
Nov 18th 2019, 14:55 |
lpj145 |
is possible ? |
# |
Nov 18th 2019, 14:55 |
lpj145 |
i'm think on "errors": [ "nasname": "my custom validation message here"] |
# |
Nov 18th 2019, 14:54 |
lpj145 |
i'be used this options but, he not alter structure of errors, only, placeholder my message validation. |
# |
Nov 18th 2019, 14:34 |
neon1024 |
@lpj145 You use the `'message'` option in the validation configuration |
# |
Nov 18th 2019, 13:59 |
lpj145 |
i think is not a good data structure to verify on client side. |
# |
Nov 18th 2019, 13:58 |
slackebot |
<lpj145> |
# |
Nov 18th 2019, 13:58 |
slackebot |
<lpj145> |
# |
Nov 18th 2019, 13:58 |
slackebot |
<lpj145> |
# |
Nov 18th 2019, 13:57 |
lpj145 |
Hi friends! is possible to customize validations errors return ? |
# |
Nov 18th 2019, 13:43 |
acosonic |
irc rocks I hate slack :) |
# |
Nov 18th 2019, 13:41 |
ndm |
@rsteenge You can modify the validator, but you're probably better off using a separate validation set instead, see https://book.cakephp.org/3/en/orm/validation.html#using-a-different-validation-set |
# |
Nov 18th 2019, 13:38 |
ndm |
@sam.fry If it's a false positive, then you'll need to teach your tool that. If you believe it's a bug in Chronos, then you should probably open an issue over at GitHub. |
# |
Nov 18th 2019, 13:04 |
rsteenge |
Is it possible in cakephp 3 to remove validation rules for some fields in the controller? |
# |
Nov 18th 2019, 12:57 |
jotpe |
Okay, thanks @ndm |
# |
Nov 18th 2019, 12:57 |
sam.fry |
Because this commit (https://github.com/cakephp/chronos/commit/c46796e761da7a06ad57e8a635ced33ab0cbfb6e) is causing us some issues :c |
# |
Nov 18th 2019, 12:55 |
sam.fry |
Hi all :wave: is this a good place to get Chronos support? |
# |
Nov 18th 2019, 12:52 |
ndm |
No, composer doesn't support that (yet). https://github.com/composer/composer/issues/183 |
# |
Nov 18th 2019, 12:47 |
jotpe |
@ndm So simple autoloading the plugin doesn't work? |
# |
Nov 18th 2019, 12:46 |
ndm |
That only works if your plugin is being required as a composer dependency itself. |
# |
Nov 18th 2019, 12:37 |
jotpe |
Hey guys, if I have a Cake Plugin which needs a external lib, why can't I specify the composer dependency in the plugin's `composer.json`? (i.e. I have a baked plugin which uses `phpoffice/phpspreadsheet` but for some reason I need to specify the dpendency in the project's composer.json) |
# |
Nov 18th 2019, 12:34 |
luizcmarin |
good morning I saw that "file input, Kartik" was added to the cake4 update. Does anyone have any information on how to use it on cake? |
# |
Nov 18th 2019, 11:49 |
admad |
that's most "mall cop"s around the world :slightly_smiling_face: |
# |
Nov 18th 2019, 11:40 |
challgren |
Haha! |
# |
Nov 18th 2019, 11:32 |
dereuromark |
https://twitter.com/rickhanlonii/status/1195738341301522432 |
# |
Nov 18th 2019, 10:32 |
neon1024 |
:thumbsup: |
# |
Nov 18th 2019, 10:11 |
conehead |
@neon1024 Cheers mate. Seems to be running like a charm. And as fast as I was hoping. Even seems to be running with multiple vue projects! |
# |
Nov 18th 2019, 09:39 |
jotpe |
Morning :slightly_smiling_face: |
# |
Nov 18th 2019, 09:31 |
conehead |
I will have a look. Thank you. Haven't worked with webpack yet |
# |
Nov 18th 2019, 09:30 |
neon1024 |
`webpack --mode development --watch --info-verbosity verbose --progress --config webpack.config.dev.js` |
# |
Nov 18th 2019, 09:30 |
neon1024 |
You could still just call webpack directly |
# |
Nov 18th 2019, 09:30 |
neon1024 |
Although as it’s a script in package.json you can call it whatever you want |
# |
Nov 18th 2019, 09:30 |
neon1024 |
Not serve, I just use build, but added watch to my webpack config |
# |
Nov 18th 2019, 09:29 |
conehead |
Okay so you call `npm run serve` and webpack detects changes in your code and compiles the changes to your webroot folder? |
# |
Nov 18th 2019, 09:29 |
neon1024 |
Would be `yarn run build` |
# |
Nov 18th 2019, 09:29 |
neon1024 |
https://github.com/davidyell/cakefest-japan-2019/blob/master/package.json#L31 |
# |
Nov 18th 2019, 09:28 |
neon1024 |
@challgren Someone in my office did, but they said there were some issues with it |
# |
Nov 18th 2019, 09:28 |
neon1024 |
Which is how I call Webpack :slightly_smiling_face: |