Log message #4156531

# At Username Text
# Jul 6th 2018, 12:39 Martin` I've connected store colors to the group. so it is the same for al children, but it is also possible to connect the color to a child
# Jul 6th 2018, 12:38 Martin` hope it is understandable in english haha :P
# Jul 6th 2018, 12:38 Martin` I think there is no relations for tree's that if I connect something to a group, and if there is no one for the child, it find it in the tree up?
# Jul 6th 2018, 11:28 rogerpro check Time::setDefaultLocale(‘ja_JP’);
# Jul 6th 2018, 11:28 rogerpro @dwms Time::setDefaultLocale(‘ja_JP’); ?
# Jul 6th 2018, 11:27 dwms show hour incorrect
# Jul 6th 2018, 11:27 dwms Time::now()
# Jul 6th 2018, 11:26 dwms how to set time zone cakephp 3
# Jul 6th 2018, 11:20 rogerpro Is there a way to automatically make all forms in an app disabled after submitting to prevent multiple submisions? Any plugin to save time?
# Jul 6th 2018, 11:10 wYm @slackebot4, >.< yes it work thanks :D but I remember that was with _prefix any way it work thanks again for your help: )
# Jul 6th 2018, 11:08 neon1024 Wym, Wouldn’t that be just not specifying it? `['controller' => 'Examples', 'action' => 'index', 'prefix' => false]`
# Jul 6th 2018, 11:07 neon1024 >:(
# Jul 6th 2018, 11:07 neon1024 When you implement parent methods and check ‘Copy docblock from parent’ and it comes out with the old classic `{@inheritdoc}`
# Jul 6th 2018, 11:06 wYm but now I didn't find that in the doc
# Jul 6th 2018, 11:05 wYm hi all, how can I remove prefix on cakephp 3 with the function build of the Url helper, before it was with _prefix param
# Jul 6th 2018, 10:58 skor :+1:
# Jul 6th 2018, 10:57 okelet that's a good idea... in my case I only need the username, for auditing the error, so I will save it as a session variable, thanks!!!
# Jul 6th 2018, 10:56 skor I see that the ‘Controller.beforeRedirect’ is called before redirecting, in Cake\Controller\Controller, should I be using that?
# Jul 6th 2018, 10:51 skor Juan, I keep a Singleton of the session data, populated after the auth in appcontroller, then I can `use` it anywhere.
# Jul 6th 2018, 10:50 skor hi everyone! $this->response = $this->response->withCookie(‘userId’, [ ‘value’ => $currentUserId, ... ]); // but then I $this->redirect($this->Auth->redirectUrl()) // no cookie gets set, should I be using: // return $this->response->withHeader(‘Location’, $this->Auth->redirectUrl()); ? cake 3.4 thanks!
# Jul 6th 2018, 10:31 okelet hi, does someone know if i can access the current logged user from an error handler? searching google and github without success....
# Jul 6th 2018, 10:20 james.phillips place
# Jul 6th 2018, 10:20 james.phillips @bravo-kernel thanks for looking into it and for the code in the first palce
# Jul 6th 2018, 10:19 bravo-kernel so I don't misinform people ;)
# Jul 6th 2018, 10:19 bravo-kernel @james.phillips no problem and it's interesting anyway. I just want to make sure I get the expectations clear
# Jul 6th 2018, 10:12 k4t thank you!
# Jul 6th 2018, 10:11 lorenzo `through($collection) use ($purchaseType) { return $collection->sortBy($callback, $sortOrder); })`
# Jul 6th 2018, 10:11 lorenzo use the `through()` function for that
# Jul 6th 2018, 10:09 k4t I just thinked about something like this ;p
# Jul 6th 2018, 10:09 k4t File uploaded https://cakesf.slack.com/files/U0TD082KF/FBK9XP6RW/sort.php / https://slack-files.com/T053DPNCM-FBK9XP6RW-e68b05c868
# Jul 6th 2018, 10:09 k4t hmmm
# Jul 6th 2018, 10:08 lorenzo that would not make much sense, would it?
# Jul 6th 2018, 10:08 lorenzo no
# Jul 6th 2018, 10:08 k4t not via sortBy parameter
# Jul 6th 2018, 10:07 k4t @lorenzo is it possible to change SORT ORDER in sortBy callback function?
# Jul 6th 2018, 10:05 iqu view uses datepicker
# Jul 6th 2018, 10:03 iqu easy way would be just to change all in $this->request->getData(); array
# Jul 6th 2018, 10:02 iqu have many date coming from view in format: 'effective_from' => '20-12-2018', Best wayt to convert into something that date object accepts?
# Jul 6th 2018, 09:41 josbeir right...
# Jul 6th 2018, 09:41 braeden because the performance grinds to a halt when using secondary indexes (i.e. querying a bunch of records by a non-primary key)
# Jul 6th 2018, 09:41 braeden You can't do any of the nice things that you can do with MySQL/SQL