# |
Sep 16th 2019, 14:29 |
ricksaccous |
this happens even if i change the rule like so: |
# |
Sep 16th 2019, 14:25 |
ricksaccous |
hmmmm |
# |
Sep 16th 2019, 14:25 |
ricksaccous |
and rather than it showing up on the _ids field in the errors array it shows up in _nested |
# |
Sep 16th 2019, 14:25 |
ricksaccous |
I keep getting the error message "the provided value is invalid" |
# |
Sep 16th 2019, 14:24 |
slackebot |
<ricksaccous> |
# |
Sep 16th 2019, 14:23 |
ricksaccous |
I have an allowEmptyArray on the _ids field in a nestedmany validator |
# |
Sep 16th 2019, 14:23 |
ricksaccous |
to show as required |
# |
Sep 16th 2019, 14:23 |
ricksaccous |
I'm having trouble getting an _ids field |
# |
Sep 16th 2019, 14:08 |
alexdd55976 |
no in combination with yii on a xampp installation |
# |
Sep 16th 2019, 14:02 |
neon1024 |
I’ve found Codeception to be quite helpful |
# |
Sep 16th 2019, 13:54 |
alexdd55976 |
never do anything with codeception.. a PITA |
# |
Sep 16th 2019, 12:28 |
javier.villanueva |
In my app.php I change my defaultLocale to es_ES but this format in validation not change |
# |
Sep 16th 2019, 12:27 |
javier.villanueva |
then... how do I change this "ymd" ? |
# |
Sep 16th 2019, 12:27 |
javier.villanueva |
(it is ok) |
# |
Sep 16th 2019, 12:27 |
javier.villanueva |
If I use another date format in save thorw an error |
# |
Sep 16th 2019, 12:26 |
javier.villanueva |
validator format is ymd by default. |
# |
Sep 16th 2019, 12:25 |
admad |
Validator format is unrelated to db type class formats |
# |
Sep 16th 2019, 12:25 |
javier.villanueva |
only works if I set an specific format in validation :S |
# |
Sep 16th 2019, 12:24 |
javier.villanueva |
@admad I set format in validator because not works instead |
# |
Sep 16th 2019, 12:23 |
javier.villanueva |
my message "the diff cake 3.7.9 works, my 3.8.3 not works" <- is false |
# |
Sep 16th 2019, 12:23 |
admad |
@javier.villanueva don't turn on locale parsing if you are setting formats your self |
# |
Sep 16th 2019, 12:11 |
javier.villanueva |
How do I add a default format different to ymd? |
# |
Sep 16th 2019, 12:10 |
javier.villanueva |
date validator accept a second parameter "formats" |
# |
Sep 16th 2019, 12:05 |
jh |
how do I get the subcollection |
# |
Sep 16th 2019, 12:05 |
jh |
I want to use indexBy/groupBy on a sub collection |
# |
Sep 16th 2019, 12:05 |
jh |
I want to use collection() to work on some json struct |
# |
Sep 16th 2019, 11:54 |
javier.villanueva |
the diff cake 3.7.9 works, my 3.8.3 not works |
# |
Sep 16th 2019, 11:53 |
javier.villanueva |
I have another project in the same server (local) and works... |
# |
Sep 16th 2019, 11:53 |
javier.villanueva |
same error :S |
# |
Sep 16th 2019, 11:52 |
javier.villanueva |
ok |
# |
Sep 16th 2019, 11:51 |
admad |
@javier.villanueva try L instead of M |
# |
Sep 16th 2019, 11:40 |
javier.villanueva |
"The provided value is invalid" |
# |
Sep 16th 2019, 11:40 |
javier.villanueva |
but patchentities always returns invalid values |
# |
Sep 16th 2019, 11:39 |
slackebot |
\Cake\Database\Type::build('datetime')->useLocaleParser()->setLocaleFormat('dd/MM/yyyy HH:mm'); \Cake\Database\Type::build('timestamp')->useLocaleParser()->setLocaleFormat('dd/MM/yyyy HH:mm'); \Cake\Database\Type::build('decimal')->useLocaleParser(); \Cake\Database\Type::build('float')->useLocaleParser() |
# |
Sep 16th 2019, 11:39 |
javier.villanueva |
\Cake\I18n\Time::setToStringFormat([IntlDateFormatter::MEDIUM, IntlDateFormatter::SHORT]); \Cake\I18n\Time::setToStringFormat('dd/MM/YYYY HH:mm'); \Cake\I18n\Date::setToStringFormat('dd/MM/yyyy'); \Cake\I18n\FrozenTime::setToStringFormat('dd/MM/yyyy HH:mm'); \Cake\I18n\FrozenDate::setToStringFormat('dd/MM/yyyy'); \Cake\Database\Type::build('date')->useLocaleParser()->setLocaleFormat('dd/MM/yyyy'); |
# |
Sep 16th 2019, 11:39 |
javier.villanueva |
And in my bootstrap.php |
# |
Sep 16th 2019, 11:38 |
javier.villanueva |
Hi, I have a problem validating my date fields. I am working with dd/MM/yyyy format. |
# |
Sep 16th 2019, 10:19 |
jotpe |
Btw: I set companyConfig in beforeRender() |
# |
Sep 16th 2019, 10:12 |
jotpe |
In my AppController I set some misc. data: `$this->set('companyConfig', Configure::read('company'));` which should be available mostly everywhere. For the views this works perfect. When I now want to send Emails this is not accessible. Do I have to set it on every Mail manually with setViewVars()? Or is there another approach with AppView or so? |
# |
Sep 16th 2019, 10:00 |
admad |
`findLive()` and `findlive()` refers to same method |
# |
Sep 16th 2019, 10:00 |
admad |
@neon1024 it's inline with case insensitivity of methods names in php |