# |
Jul 16th 2018, 13:23 |
neon1024 |
I should wrap it up somewhere though |
# |
Jul 16th 2018, 13:23 |
josbeir |
that works too |
# |
Jul 16th 2018, 13:23 |
josbeir |
;) |
# |
Jul 16th 2018, 13:16 |
neon1024 |
File uploaded https://cakesf.slack.com/files/U1BT622HW/FBQK6V9ND/sorting_by_calculated_field.php / https://slack-files.com/T053DPNCM-FBQK6V9ND-bafff4208c - Well, that’s a nice sidestep / hack. |
# |
Jul 16th 2018, 13:11 |
josbeir |
:P |
# |
Jul 16th 2018, 13:11 |
josbeir |
DateTime::diff() |
# |
Jul 16th 2018, 13:10 |
neon1024 |
`TIMEDIFF(finished, began) as duration` kinda easy in MySQL qhich is nice |
# |
Jul 16th 2018, 13:03 |
josbeir |
leveraging paginator |
# |
Jul 16th 2018, 13:03 |
josbeir |
its probably the most easy solution too |
# |
Jul 16th 2018, 13:03 |
neon1024 |
I will try compiling the sort in sql in my controller first though, just to save time |
# |
Jul 16th 2018, 13:03 |
neon1024 |
@josbeir Yes, perhaps saving the duration isn’t such a bad idea |
# |
Jul 16th 2018, 12:30 |
kitcat711 |
well, I have only the deprecation warning to the "Cake" section now (in debugkit), do I have to handle those too? |
# |
Jul 16th 2018, 12:13 |
josbeir |
cant you persist the computed result in your db too ? |
# |
Jul 16th 2018, 12:12 |
josbeir |
if we are talking in pagination terms ... |
# |
Jul 16th 2018, 12:12 |
josbeir |
thats not going to be easy out of the box :P |
# |
Jul 16th 2018, 12:11 |
josbeir |
ah you have a resultset and wat to sort on a 'dynamic' field? |
# |
Jul 16th 2018, 12:11 |
josbeir |
sort a collection? what sort of set you want to sort? |
# |
Jul 16th 2018, 11:54 |
neon1024 |
I have `began` and `finished` datetimes, but I would like to display in my UI `duration` and sort on it |
# |
Jul 16th 2018, 11:54 |
neon1024 |
How can I sort based on a computed field? |
# |
Jul 16th 2018, 10:49 |
neon1024 |
“60% of the time, it works every time” |
# |
Jul 16th 2018, 10:48 |
neon1024 |
I’d use copy and paste personally. |
# |
Jul 16th 2018, 10:48 |
dwms |
to put a 360ph picture with cakephp on the website, how? |
# |
Jul 16th 2018, 09:19 |
josbeir |
is_callable($arr, true) seems to do the trick |
# |
Jul 16th 2018, 09:06 |
josbeir |
is there a way to detect a callable array notation in php: [ $this, 'myfn' ] |
# |
Jul 16th 2018, 08:46 |
josbeir |
ah there is :slightly_smiling_face: |
# |
Jul 16th 2018, 08:46 |
josbeir |
i think |
# |
Jul 16th 2018, 08:46 |
josbeir |
there is not debug kit 3.16.3 |
# |
Jul 16th 2018, 08:46 |
DBZSadie |
have to check out here for a bit.... |
# |
Jul 16th 2018, 08:43 |
DBZSadie |
salckebot my debug kit is 3.16.3 |
# |
Jul 16th 2018, 08:33 |
DBZSadie |
salckebot... I'm checking... |
# |
Jul 16th 2018, 08:31 |
josbeir |
r u sure you have the latest debugkit (3.15.1) ? |
# |
Jul 16th 2018, 08:30 |
DBZSadie |
I have the latest https://github.com/cakephp/cakephp/blob/master/src/Mailer/Email.php still no change |
# |
Jul 16th 2018, 08:29 |
josbeir |
i hope we take the title there |
# |
Jul 16th 2018, 08:28 |
josbeir |
finals will be in wembley :P |
# |
Jul 16th 2018, 08:28 |
josbeir |
probably but EU has nothing to do with europe here luckily |
# |
Jul 16th 2018, 08:27 |
neon1024 |
I look forward to seeing the English team queuing at border control to have their passports checked |
# |
Jul 16th 2018, 08:27 |
neon1024 |
I guess Euro 2020 might be the first UEFA tournament where Britain isn’t in the EU? |
# |
Jul 16th 2018, 08:26 |
neon1024 |
It’s that kind of stage where there isn’t quite enough to break into files, but just enough that finding a specific part is hard |
# |
Jul 16th 2018, 08:26 |
neon1024 |
I reckon these docs could do with an index or something |
# |
Jul 16th 2018, 08:25 |
neon1024 |
By yourself I reckon :P |
# |
Jul 16th 2018, 08:25 |
neon1024 |
Using your plugin is recommended eh? |