# |
Nov 14th 2019, 08:44 |
conehead |
@scuadra You would do that in beforeMarshal(). After using create/patchEntity, you should always have a valid Entity that you should be able to save straight away. This is not the case if you do it in beforeSave |
# |
Nov 14th 2019, 08:37 |
scuadra |
Hello. I have a form where the user fills some fields and one of them is `dates` in format YYYY-MM-DD - YYYY-MM-DD. In Cake 3 where is the right place to parse the user input to start_date and end_date? Is it beforeMarshal() or beforeSave() |
# |
Nov 13th 2019, 10:34 |
admad |
Bot is run by the CakePHP team |
# |
Nov 13th 2019, 10:34 |
challgren |
Ohh ok, wasnt sure if it was community run or cake run |
# |
Nov 13th 2019, 10:34 |
admad |
@challgren you can send a mail to security@cakephp.org |
# |
Nov 13th 2019, 10:33 |
challgren |
Yeah got a security exploit to report |
# |
Nov 13th 2019, 10:33 |
steinkel |
https://github.com/cakephp/cakebot this one? |
# |
Nov 13th 2019, 10:32 |
challgren |
@steinkel do you know who runs @cakebot |
# |
Nov 13th 2019, 10:31 |
steinkel |
@pieceof @javier.villanueva setting pagination to a high value will possibly lead to memory issues or a slow frontend processing, would it be possible to filter/paginate the results in the backend instead? |
# |
Nov 13th 2019, 09:41 |
javier.villanueva |
: ) |
# |
Nov 13th 2019, 09:39 |
pieceof |
finally got something like this working... https://:D:D:D:D/api/hugetable.json?date=2019-09-08*andsort=durationanddirection=descandlimit=50 prolly made some mistake, its like working... suspicius |
# |
Nov 13th 2019, 09:39 |
javier.villanueva |
I hope it changes for good |
# |
Nov 13th 2019, 09:37 |
pieceof |
search changed a lot in 3 gotta re learn it |
# |
Nov 13th 2019, 09:34 |
javier.villanueva |
I remember now xD I had forgot old issues |
# |
Nov 13th 2019, 09:34 |
javier.villanueva |
yes, I use in this case Search plugin |
# |
Nov 13th 2019, 09:30 |
pieceof |
when using server pagination most prolly u will need some search |
# |
Nov 13th 2019, 09:25 |
javier.villanueva |
I will not use js in very big tables |
# |
Nov 13th 2019, 09:22 |
pieceof |
:+1: |
# |
Nov 13th 2019, 09:22 |
javier.villanueva |
thanks! |
# |
Nov 13th 2019, 09:21 |
javier.villanueva |
ok no problem |
# |
Nov 13th 2019, 09:20 |
pieceof |
*appcontroller |
# |
Nov 13th 2019, 09:20 |
pieceof |
im not sure as im puzzling it too but a public paginator maybe in controller |
# |
Nov 13th 2019, 09:20 |
javier.villanueva |
do you set it in appController? |
# |
Nov 13th 2019, 09:19 |
javier.villanueva |
yes thanks xD |
# |
Nov 13th 2019, 09:19 |
pieceof |
what you want php or js pagination you have to choose |
# |
Nov 13th 2019, 09:18 |
pieceof |
go pro |
# |
Nov 13th 2019, 09:17 |
pieceof |
thats nap |
# |
Nov 13th 2019, 09:17 |
javier.villanueva |
mm I check it xD |
# |
Nov 13th 2019, 09:16 |
pieceof |
xD |
# |
Nov 13th 2019, 09:16 |
javier.villanueva |
I must specify limit and maxLimit to 100000 |
# |
Nov 13th 2019, 09:16 |
pieceof |
cake paginator defaults to 20, tweak it in app controller |
# |
Nov 13th 2019, 09:15 |
javier.villanueva |
but anyway, if I disabled datatable... only show by default 20 records |
# |
Nov 13th 2019, 09:14 |
pieceof |
in datatables use limit all |
# |
Nov 13th 2019, 09:13 |
javier.villanueva |
Ok, I understand.... Im using datatable and is limiting for each page its total |
# |
Nov 13th 2019, 09:10 |
javier.villanueva |
or I have any error |
# |
Nov 13th 2019, 09:09 |
javier.villanueva |
for page and for all list |
# |
Nov 13th 2019, 09:09 |
pieceof |
but theres a limit and a maxLimit for each page |
# |
Nov 13th 2019, 09:09 |
javier.villanueva |
I can remove this limit in paginate function for each controller |
# |
Nov 13th 2019, 09:09 |
javier.villanueva |
or 20 |
# |
Nov 13th 2019, 09:09 |
javier.villanueva |
by default is limited to 100 |
# |
Nov 13th 2019, 09:08 |
javier.villanueva |
I want normal pagination, but unlimited results |