# |
Mar 28th 2019, 14:37 |
cnizzardini |
Awesome! |
# |
Mar 28th 2019, 14:37 |
ricksaccous |
so you have to return $response->withModifications |
# |
Mar 28th 2019, 14:36 |
ricksaccous |
$response is immutable |
# |
Mar 28th 2019, 14:36 |
cnizzardini |
Any reason filenames would not be getting set on downloads after upgrade from 3.5 to 3.7? Seems to be ignoring the filename and just doing index.csv now. This could was working prior in AppController::beforeRender ` if ($response->getType() == 'text/csv') { $filename = filter_var($this->request->getQuery('filename'), FILTER_SANITIZE_STRING); $response->withDownload($filename . ".csv"); }` |
# |
Mar 28th 2019, 13:50 |
cnizzardini |
worth checking to see what its doing at least |
# |
Mar 28th 2019, 13:50 |
ricksaccous |
meaning i haven't run into anything running too slow yet |
# |
Mar 28th 2019, 13:49 |
ricksaccous |
anyway my worries are kind of pre-emptive |
# |
Mar 28th 2019, 13:49 |
cnizzardini |
I doubt it is doing bad database access though, the cake orm is pretty good about that |
# |
Mar 28th 2019, 13:49 |
ricksaccous |
kk will do |
# |
Mar 28th 2019, 13:48 |
cnizzardini |
Just check the SQL Log tab |
# |
Mar 28th 2019, 13:48 |
cnizzardini |
You can see what its doing with debugkit |
# |
Mar 28th 2019, 13:41 |
ricksaccous |
but after patch saving is no big deal |
# |
Mar 28th 2019, 13:40 |
ricksaccous |
meaning i think it's selecting 1000 or so rows to patch |
# |
Mar 28th 2019, 13:40 |
ricksaccous |
yeah it's basically just a big patchEntity, i'm just worried because patchEntity seems to hydrate everything |
# |
Mar 28th 2019, 13:38 |
cnizzardini |
But like inoas said, do not do 1000 inserts/updates, do a single query for the save operation. |
# |
Mar 28th 2019, 13:37 |
cnizzardini |
But it depends on how often you expect the operation to be run by users |
# |
Mar 28th 2019, 13:37 |
cnizzardini |
I don't think databases or cake will have problems with that |
# |
Mar 28th 2019, 13:35 |
inoas |
with update all and conditions and stuff |
# |
Mar 28th 2019, 13:34 |
inoas |
you can do that in one patch |
# |
Mar 28th 2019, 13:30 |
ricksaccous |
lol |
# |
Mar 28th 2019, 13:30 |
ricksaccous |
just worried about patchEntity on 1000s of ids |
# |
Mar 28th 2019, 13:26 |
inoas |
ricksaccous not necessarily no |
# |
Mar 28th 2019, 13:22 |
ricksaccous |
or is that going to lead to a bad bottleneck |
# |
Mar 28th 2019, 13:22 |
ricksaccous |
in a belongsToMany |
# |
Mar 28th 2019, 13:22 |
ricksaccous |
is it a bad idea to save like up to 1000s of _ids |
# |
Mar 28th 2019, 13:21 |
JVieira |
Anybody can tell how can i get a for cicle with the fields name in the controller twig template? |
# |
Mar 28th 2019, 13:20 |
JVieira |
hello |
# |
Mar 28th 2019, 12:37 |
admad |
crickets |
# |
Mar 28th 2019, 12:24 |
neon1024 |
`composer create-project cakephp/app ExampleCakeProject`? |
# |
Mar 28th 2019, 12:23 |
neon1024 |
How did you create your ‘clean installation’? |
# |
Mar 28th 2019, 12:12 |
david |
Create the class DebugKitController below in file: src\Controller\DebugKitController.php |
# |
Mar 28th 2019, 12:12 |
david |
why does a clean installation of CakePHP fails with debug kit? |
# |
Mar 28th 2019, 11:41 |
joopm |
it will create the skeleton |
# |
Mar 28th 2019, 11:41 |
joopm |
cake bake plugin |
# |
Mar 28th 2019, 11:41 |
joopm |
with bake |
# |
Mar 28th 2019, 11:37 |
rohit.onus |
Hello How can i create custom plugin in Version 3.7 ? |
# |
Mar 28th 2019, 10:43 |
joopm |
i thought it Security::hash use the Default hasher |
# |
Mar 28th 2019, 10:42 |
joopm |
Security::hash('password') and $hasher->hash('password') does not return the same! |
# |
Mar 28th 2019, 10:42 |
joopm |
Security::hash('password') and $hasher->hash('Jelszo1234') |
# |
Mar 28th 2019, 10:41 |
joopm |
the issue was with : |
# |
Mar 28th 2019, 10:41 |
joopm |
thank you! found the solution |