# |
Jan 3rd 2020, 21:46 |
d.lisiecki93 |
as on screen above, which is doc from it |
# |
Jan 3rd 2020, 21:46 |
slackebot |
<ricksaccous> |
# |
Jan 3rd 2020, 21:46 |
d.lisiecki93 |
@ricksaccous my data structure is basically the same |
# |
Jan 3rd 2020, 21:46 |
slackebot |
<d.lisiecki93> |
# |
Jan 3rd 2020, 21:46 |
ricksaccous |
also just follow the example code more closely... |
# |
Jan 3rd 2020, 21:45 |
ricksaccous |
a header is just a row |
# |
Jan 3rd 2020, 21:44 |
ricksaccous |
... |
# |
Jan 3rd 2020, 21:44 |
ricksaccous |
why would you want a multi-dimensional array header? |
# |
Jan 3rd 2020, 21:43 |
d.lisiecki93 |
also if i try to do header as multi dimensional array it does not work anymore |
# |
Jan 3rd 2020, 21:42 |
d.lisiecki93 |
header and footer are simply one dimensional array if You wonder |
# |
Jan 3rd 2020, 21:41 |
slackebot |
<d.lisiecki93> |
# |
Jan 3rd 2020, 21:41 |
d.lisiecki93 |
that's the code of method for generating CSV: |
# |
Jan 3rd 2020, 21:40 |
slackebot |
vendors to check what's going on there, and it seems like it's not handling headers / footers otherwise than, lets say, csv body data, which is meant to be multi dimensional array, for which this warning is not occuring |
# |
Jan 3rd 2020, 21:40 |
d.lisiecki93 |
i've got question about `CsvView` plugin from FriendsOfCake, not sure if there's actually bug or im doing something wrong, docs says that if i want headers and eventual footer, i should pass it as one-dimensional array, and it generally works fine, except im getting warning: ```Warning (2): fputcsv() expects parameter 2 to be array, string given [ROOT/vendor/friendsofcake/cakephp-csvview/src/View/CsvView.php, line 439]``` i did jump to |
# |
Jan 3rd 2020, 20:45 |
ricksaccous |
no problem |
# |
Jan 3rd 2020, 20:43 |
ndm |
Also https://book.cakephp.org/chronos/1/en/index.html#modifier-methods |
# |
Jan 3rd 2020, 20:38 |
d.lisiecki93 |
wow, i didn't consider it this way, my way was much worse and overcomplicated, thank you so much |
# |
Jan 3rd 2020, 20:38 |
ricksaccous |
https://book.cakephp.org/3/en/core-libraries/time.html#manipulation |
# |
Jan 3rd 2020, 20:37 |
ricksaccous |
$object->day(1); |
# |
Jan 3rd 2020, 20:36 |
d.lisiecki93 |
instance of `Cake\I18n\Time` |
# |
Jan 3rd 2020, 20:36 |
d.lisiecki93 |
hi guys, what is the fastest way to generate `Time` object with first day of current month (of current year obviously) |
# |
Jan 3rd 2020, 20:34 |
kiwi_92 |
hi |
# |
Jan 3rd 2020, 19:23 |
ricksaccous |
cake supports |
# |
Jan 3rd 2020, 19:23 |
ricksaccous |
Something like dynamo is vastly different from any other DB system |
# |
Jan 3rd 2020, 18:59 |
Geo38 |
Longtime Cake 2.x and some 3.x user though a few years removed.. curious where Cake is re: ORM support for cloud DB services DynamoDB, and serverless deployment: have parties been successful deploying Cake PHP in a serverless world? |
# |
Jan 3rd 2020, 18:55 |
ricksaccous |
sweet deal sweet deal ;) |
# |
Jan 3rd 2020, 18:54 |
dereuromark |
Smaller diffs :) |
# |
Jan 3rd 2020, 18:43 |
ricksaccous |
oh alright |
# |
Jan 3rd 2020, 18:41 |
dereuromark |
No a useful thing to avoid pr conflicts |
# |
Jan 3rd 2020, 18:36 |
ricksaccous |
is codesniffer wanting multine arrays to have a comma at the end a cakephp thing or a psr12 thing |
# |
Jan 3rd 2020, 17:30 |
daniel.upshaw |
Got it, thanks so much for the info |
# |
Jan 3rd 2020, 17:29 |
dereuromark |
https://github.com/cakephp/cakephp/issues/13493#issuecomment-570640461 |
# |
Jan 3rd 2020, 17:28 |
dereuromark |
I wonder if 3.next should include a more clear deprecation message |
# |
Jan 3rd 2020, 17:28 |
dereuromark |
in 4.x it is just more visible now as it blows up more "red" :) |
# |
Jan 3rd 2020, 17:28 |
dereuromark |
one should only use entity or null |
# |
Jan 3rd 2020, 17:27 |
dereuromark |
https://github.com/dereuromark/upgrade/blob/master/src/Shell/Task/TemplatesTask.php#L99-L104 This is a few years old autofixer for those things. |
# |
Jan 3rd 2020, 17:27 |
daniel.upshaw |
Thanks |
# |
Jan 3rd 2020, 17:27 |
daniel.upshaw |
name in a string |
# |
Jan 3rd 2020, 17:27 |
daniel.upshaw |
I thought I remembered being about to use the model |
# |
Jan 3rd 2020, 17:26 |
daniel.upshaw |
Oh hrm |
# |
Jan 3rd 2020, 17:26 |
daniel.upshaw |
Whereas before it would parse the model? |