# |
Jul 25th 2016, 18:19 |
mikatone |
antograssiot https://gist.github.com/fccpt/2ea1d1c78536aacee7829f62584eece7 |
# |
Jul 25th 2016, 18:18 |
mikatone |
antograssiot date arrives at controller as a string not as an array as if used an input date type |
# |
Jul 25th 2016, 18:17 |
mikatone |
antograssiot I'm using a date picker I'm sure I've told you about |
# |
Jul 25th 2016, 18:16 |
djdnl13 |
from here dude, composer create-project --prefer-dist cakephp/app |
# |
Jul 25th 2016, 18:16 |
antograssiot |
are you on a fresh install ? |
# |
Jul 25th 2016, 18:16 |
antograssiot |
I don't where your code is comming from |
# |
Jul 25th 2016, 18:15 |
antograssiot |
djdnl13 once again https://github.com/cakephp/app/blob/master/src/Template/Pages/home.ctp#L67-L71 |
# |
Jul 25th 2016, 18:14 |
antograssiot |
so min version for cake 3.2 is PHP 5.5.9 but you could still use cake 3.1 if your PHP version is lower |
# |
Jul 25th 2016, 18:14 |
djdnl13 |
in home.ctp line 61 : <?php if (version_compare(PHP_VERSION, '5.4.16', '>=')): ?> |
# |
Jul 25th 2016, 18:14 |
djdnl13 |
So? |
# |
Jul 25th 2016, 18:13 |
btx |
good, cuz that means I need to update this junk haha |
# |
Jul 25th 2016, 18:13 |
mikatone |
antograssiot $validator->date('intervention_date', 'dmy'); |
# |
Jul 25th 2016, 18:13 |
mikatone |
$validator->date('intervention_date', 'dmy'); |
# |
Jul 25th 2016, 18:13 |
btx |
oh yeah i dunno wtf i am smoking, those were in my old composer file lol |
# |
Jul 25th 2016, 18:13 |
antograssiot |
yes the versino requirement was bump in 3.2 http://book.cakephp.org/3.0/en/appendices/3-2-migration-guide.html#minimum-php-5-5-required |
# |
Jul 25th 2016, 18:13 |
mikatone |
antograssiot post data intervention_date: 30-07-0025 |
# |
Jul 25th 2016, 18:12 |
antograssiot |
so you could use these version if you're stuck with php |
# |
Jul 25th 2016, 18:12 |
antograssiot |
it was 5.4.16 in cake 3.0 and 3.1 if I remember well |
# |
Jul 25th 2016, 18:12 |
antograssiot |
https://github.com/cakephp/cakephp/blob/master/composer.json#L21 |
# |
Jul 25th 2016, 18:11 |
djdnl13 |
slackebot2: I just followed the Blog tutorial, basically the setting up. and the deafult pages says: Your version of PHP is 5.4.16 or higher. |
# |
Jul 25th 2016, 18:10 |
btx |
@antograssiot: itâ??s in the composer file and the default home page file |
# |
Jul 25th 2016, 18:10 |
antograssiot |
where did you see 5.4.16 ? |
# |
Jul 25th 2016, 18:09 |
antograssiot |
djdnl13 5.5.9 is the minimum |
# |
Jul 25th 2016, 18:09 |
btx |
@djdnl13 if you check the `composer.json` file I think itâ??s almost always the safest bet since all installs and dependencies are controlled by that file |
# |
Jul 25th 2016, 18:08 |
antograssiot |
mikatone so you need ->date('intervention_date', 'dmy') |
# |
Jul 25th 2016, 18:07 |
djdnl13 |
Hello. One question. What is the minimun PHP version for running cakePHP3, since the Installation Requirements says PHP 5.5.9 or greater and a clean project says Your version of PHP is 5.4.16 or higher. Will I have any problem with that? |
# |
Jul 25th 2016, 18:06 |
mikatone |
antograssiot https://gist.github.com/antograssiot/d4577eaba99dc0727769858ef4de221a |
# |
Jul 25th 2016, 18:03 |
mikatone |
antograssiot let me check |
# |
Jul 25th 2016, 18:03 |
antograssiot |
I'm using 'rule' => ['datetime', 'dmy'], |
# |
Jul 25th 2016, 18:02 |
mikatone |
I think that the post data is ok according to locale |
# |
Jul 25th 2016, 18:02 |
mikatone |
antograssiot yes but there is nothing to validate as post: intervention_date:30-07-0025 |
# |
Jul 25th 2016, 18:02 |
antograssiot |
are you using any validation rule ? |
# |
Jul 25th 2016, 18:01 |
antograssiot |
so it is a validation thing now right ? |
# |
Jul 25th 2016, 18:00 |
mikatone |
and form error message The provided value is invalid |
# |
Jul 25th 2016, 18:00 |
mikatone |
no error just get false for intervention->save |
# |
Jul 25th 2016, 17:58 |
antograssiot |
what kind of error message are you getting ? |
# |
Jul 25th 2016, 17:58 |
antograssiot |
I only use datetime in my app and it worked like that, I don't know with date only. |
# |
Jul 25th 2016, 17:58 |
mikatone |
without time... |
# |
Jul 25th 2016, 17:58 |
mikatone |
Date::setToStringFormat('dd-MM-yyyy'); |
# |
Jul 25th 2016, 17:58 |
mikatone |
antograssiot still The provided value is invalid |
# |
Jul 25th 2016, 17:57 |
mikatone |
lol |