# |
Jul 25th 2016, 18:44 |
comeAndHelpMeObi |
and through |
# |
Jul 25th 2016, 18:44 |
comeAndHelpMeObi |
using belongsToMany |
# |
Jul 25th 2016, 18:43 |
comeAndHelpMeObi |
I'm following the cake book to create a many-to-many association |
# |
Jul 25th 2016, 18:43 |
comeAndHelpMeObi |
Good evening |
# |
Jul 25th 2016, 18:41 |
antograssiot |
I usually hack the js on the form submit |
# |
Jul 25th 2016, 18:41 |
mikatone |
( kinda sad I supposed that this could be configurable |
# |
Jul 25th 2016, 18:41 |
mikatone |
antograssiot so suppose that must hack ->request->data |
# |
Jul 25th 2016, 18:40 |
mikatone |
antograssiot I found that if i reverse the date picker to dd-mm-yyyy and add the rule 'dmy' I got no errors but can't save form data I bealive that is because mysql date is expecting yyyy-mm-dd |
# |
Jul 25th 2016, 18:38 |
mikatone |
lol |
# |
Jul 25th 2016, 18:38 |
antograssiot |
molar one these messages weren't for you :P |
# |
Jul 25th 2016, 18:35 |
mikatone |
antograssiot dind't got it sorry |
# |
Jul 25th 2016, 18:33 |
antograssiot |
plus some features that can be found in release notes or migration guide in the jook |
# |
Jul 25th 2016, 18:32 |
antograssiot |
you won't have immutable date and datetime |
# |
Jul 25th 2016, 18:28 |
djdnl13 |
slackebot2: If I keep using cakePHP 3.1 with PHP 5.5.6, will it be any difference between it and other cakePHP3.3>? Or it just the Date and Time libraries ? |
# |
Jul 25th 2016, 18:26 |
ra7bi |
? |
# |
Jul 25th 2016, 18:24 |
antograssiot |
and that normal as it the the maximum version that your PHP version could support |
# |
Jul 25th 2016, 18:23 |
djdnl13 |
slackebot2: I see. composer downloaded cakePHP 3.1 |
# |
Jul 25th 2016, 18:21 |
ra7bi |
anyone know how i can make first ROW bold in PHPExcel i tried ``` $this->PhpExcel->getActiveSheet()->getStyle('1:1')->getFont()->setBold(true); ``` but not working |
# |
Jul 25th 2016, 18:21 |
antograssiot |
or what is the installed cakephp version ? |
# |
Jul 25th 2016, 18:20 |
antograssiot |
djdnl13 what's your PHP cli version ? |
# |
Jul 25th 2016, 18:20 |
mikatone |
it doesn't but if i reverse the yyyy-MM-dd it works |
# |
Jul 25th 2016, 18:19 |
mikatone |
not |
# |
Jul 25th 2016, 18:19 |
antograssiot |
does it work if you remove your validation rule ? his there a formatSubmit option or similar in your picker |
# |
Jul 25th 2016, 18:19 |
mikatone |
this is all I have in configurations... |
# |
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 |