Log message #4159345

# At Username Text
# Jul 16th 2018, 14:35 ricksaccous $routes->connect('/:controller/:action', ['plugin' => 'Foo']); I think if it's not prefixed it will be hard if it is then just put that in
# Jul 16th 2018, 14:28 itmpls ?
# Jul 16th 2018, 14:28 itmpls where i want all /users routes to feed into that plugin/controller and respective action
# Jul 16th 2018, 14:28 itmpls how can I change this into a more dynamic route? $routes->connect('/users/register', ['plugin' => 'Foo', 'controller' => 'Foo', 'action' => 'register']);
# Jul 16th 2018, 14:26 dereuromark depends on where you add it in the tree. but if you add it in the right position it will be ordered
# Jul 16th 2018, 14:10 Martin` When I add something to a tree in cakephp 3 is it automatic sorted, or is it still needed to reorder after adding things? I see my old colleage did make a cronjob that reorders stores when a store is added
# Jul 16th 2018, 14:10 zmurphy Weird, I can't get the error to trigger anymore. Not sure what was up. It was happening every other page load on friday
# Jul 16th 2018, 14:00 neon1024 Stack trace will answer this for you.
# Jul 16th 2018, 14:00 neon1024 Hence the error
# Jul 16th 2018, 14:00 neon1024 As that object is null
# Jul 16th 2018, 14:00 neon1024 But, no, we can’t help you without knowing what object the `flock()` method is being called on
# Jul 16th 2018, 13:59 neon1024 I only know Flock as the command line locking tool
# Jul 16th 2018, 13:57 zmurphy I've added some caching to one of my queries and now on occasion I get the error `Call to a member function flock() on null` when using the query. Does anyone know what might cause or solve this?
# Jul 16th 2018, 13:56 Bigman thanks for anwsers
# Jul 16th 2018, 13:48 neon1024 Maybe just tell us what you’re trying to achieve and perhaps we can suggest a solution which doesn’t involve this issue
# Jul 16th 2018, 13:47 slackebot !xy
# Jul 16th 2018, 13:47 slackebot Command sent from Slack by neon1024:
# Jul 16th 2018, 13:46 admad it hasn't in this regard. The hack shown in comment is still possible. You need to have $rootView as cell method argument and then again pass on $rootView as view variable to the cell template
# Jul 16th 2018, 13:44 Bigman and the issue is posted 4 years ago ?? maybe cake changed
# Jul 16th 2018, 13:43 Bigman because it isnt work
# Jul 16th 2018, 13:42 neon1024 You’ve asked a question to which you already know the answer?
# Jul 16th 2018, 13:37 Bigman ??
# Jul 16th 2018, 13:37 Bigman it's possible to use " $this->cell('MyCell', ['rootView' => $this]); "
# Jul 16th 2018, 13:37 Bigman into this https://github.com/cakephp/cakephp/issues/5188
# Jul 16th 2018, 13:36 admad you can't. Cell are self contained.
# Jul 16th 2018, 13:35 Bigman i want push a generated inline javascript to scriptBottom from cellview
# Jul 16th 2018, 13:34 Bigman Hi everybody
# Jul 16th 2018, 13:27 neon1024 Yes, a finder is a good idea
# Jul 16th 2018, 13:25 spriz Nice sidestep though @neon1024 :+1:
# Jul 16th 2018, 13:24 spriz throw exception in 2nd finder if the duration field is not there obviously :)
# Jul 16th 2018, 13:24 josbeir $this->Crud->action()->findMethod('withComputedDuration')
# Jul 16th 2018, 13:24 spriz ->find(withComputedDuration)
# Jul 16th 2018, 13:23 josbeir :P
# Jul 16th 2018, 13:23 josbeir findWithComputedFields
# Jul 16th 2018, 13:23 neon1024 I was sure you could put calculated fields “in” somewhere
# 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()