# |
Jul 4th 2018, 11:20 |
josbeir |
timeout is minutes so that is correct |
# |
Jul 4th 2018, 11:20 |
lubos |
we were discussing this before, might be confusing use sometimes seconds sometimes minutes |
# |
Jul 4th 2018, 11:20 |
lubos |
rather 1440/60 for `Session.timeout` |
# |
Jul 4th 2018, 11:19 |
josbeir |
you should indeed to 1440*60 for the ini config |
# |
Jul 4th 2018, 11:19 |
neon1024 |
So perhaps your cake setting is 1440 minutes, and your ini setting is 1440 seconds |
# |
Jul 4th 2018, 11:18 |
neon1024 |
As I’m certain the Cake setting is minutes, and the ini setting is seconds |
# |
Jul 4th 2018, 11:18 |
neon1024 |
Or your Auth config, conflicts with your PHP session lifetime ini setting |
# |
Jul 4th 2018, 11:18 |
neon1024 |
I would imagine that your configuration is incorrect then |
# |
Jul 4th 2018, 11:17 |
josbeir |
because by default the cookie expires when the browser session is closed |
# |
Jul 4th 2018, 11:16 |
josbeir |
and the cookie experiation time is also correct? |
# |
Jul 4th 2018, 11:16 |
david |
yes, it is. If I browse or have any activity, I dont lose the session |
# |
Jul 4th 2018, 11:16 |
josbeir |
is the cookie being set? |
# |
Jul 4th 2018, 11:15 |
david |
any idea on what I am doing wrong? |
# |
Jul 4th 2018, 11:14 |
david |
the expected time was 1440 minutes (24 hours) |
# |
Jul 4th 2018, 11:14 |
david |
but if there is no activity, users loses sessions very soon |
# |
Jul 4th 2018, 11:13 |
david |
File uploaded https://cakesf.slack.com/files/UAPU3DV3J/FBJR7K0PL/i_have_this_setup_for_my_sessions_in_app_php.php / https://slack-files.com/T053DPNCM-FBJR7K0PL-c08ee6016b |
# |
Jul 4th 2018, 11:12 |
david |
morning |
# |
Jul 4th 2018, 11:11 |
lubos |
So when using crud plugin, I would just adjust submitted data on beforeSave event |
# |
Jul 4th 2018, 11:09 |
lubos |
Form helper ``` // Multiple select element for belongsToMany // Does not support _joinData ``` I need to add some joinData, what is the best approach? In the controller? |
# |
Jul 4th 2018, 11:08 |
neon1024 |
@ldsign Simply extend the class. `class Example extends VendorBaseClass` |
# |
Jul 4th 2018, 11:08 |
lubos |
@saeideng makes sense, thanks! |
# |
Jul 4th 2018, 10:19 |
saeideng |
and I think first `formatResults` applied after than `mapreduce ` in queries , if you use both |
# |
Jul 4th 2018, 10:18 |
saeideng |
`formatResults` is easier than of mapreduce in use in finder |
# |
Jul 4th 2018, 10:15 |
ldsign |
Hi. I would like to "extend" a model class from a vendor plugin. How can I do that? Exactly I would like to add a function to the Aco-Entity from the Acl-Plugin (installed via composer)... |
# |
Jul 4th 2018, 09:52 |
josbeir |
sup |
# |
Jul 4th 2018, 09:51 |
andreas.susanto2 |
hi.. :slightly_smiling_face: |
# |
Jul 4th 2018, 09:49 |
josbeir |
in many cases mapreduce is overkill anyway :slightly_smiling_face: |
# |
Jul 4th 2018, 09:49 |
lubos |
Ahh... nice! Will give it a try |
# |
Jul 4th 2018, 09:48 |
josbeir |
if its just to unset some stuff you can do it over there |
# |
Jul 4th 2018, 09:48 |
josbeir |
https://book.cakephp.org/3.0/en/orm/query-builder.html#adding-calculated-fields |
# |
Jul 4th 2018, 09:47 |
josbeir |
btw, if its a simple manipulation you could also use formatResults() |
# |
Jul 4th 2018, 09:46 |
lubos |
yep, more examples in doc would help I think... once I am not so confused, might add some :slightly_smiling_face: |
# |
Jul 4th 2018, 09:45 |
josbeir |
i must admit that the whole mapreduce stuff is very confusing |
# |
Jul 4th 2018, 09:45 |
lubos |
@lorenzo any expert advice? :slightly_smiling_face: |
# |
Jul 4th 2018, 09:45 |
lubos |
yep... mapReduce not so easy for me though :slightly_smiling_face: but thanks for suggestions :slightly_smiling_face: |
# |
Jul 4th 2018, 09:44 |
josbeir |
its probabily possible with mapreduce tho... |
# |
Jul 4th 2018, 09:43 |
lubos |
Got it :slightly_smiling_face: |
# |
Jul 4th 2018, 09:43 |
josbeir |
$table->retrieceCoolResult() for instance |
# |
Jul 4th 2018, 09:43 |
lubos |
OK, yep. right. But mapReduce is postprocessing and I like how I can stack multiple finders :slightly_smiling_face: |
# |
Jul 4th 2018, 09:43 |
josbeir |
doesn't need to be a finder |
# |
Jul 4th 2018, 09:43 |
josbeir |
i know, a finder |