Log message #4103841

# At Username Text
# Dec 15th 2017, 16:42 rafael.junqueira.sant and still, I had to Jerry Rig it to make it work appropriately
# Dec 15th 2017, 16:42 rafael.junqueira.sant I did
# Dec 15th 2017, 16:42 dereuromark Sry if I confused you, my point was: check the code and find out.
# Dec 15th 2017, 16:42 rafael.junqueira.sant Alright, this is the documentation page: https://book.cakephp.org/3.0/en/views/helpers/flash.html
# Dec 15th 2017, 16:42 rafael.junqueira.sant Pretty obvious, right? Why would I need to use it I didn't want to display them in different ways?
# Dec 15th 2017, 16:41 rafael.junqueira.sant For me it is simple: I use Flash->success and Flash->error so I can separate both to display them in different places and styles.
# Dec 15th 2017, 16:40 rafael.junqueira.sant Can someone try to understand what's going on with $this->Flash->success?
# Dec 15th 2017, 16:40 rafael.junqueira.sant Look, I need someone to give me a little bit of focused attention here, because there is something that is becoming obvious for me and for others, for some reason, it seems obvious in other way.
# Dec 15th 2017, 16:28 inoas gnite
# Dec 15th 2017, 16:28 inoas admad let me know if I really need to fix something @ cakephp/authentication - I want the PR to be done or rejected so that my mind clears ;-)
# Dec 15th 2017, 16:22 aro i couldnt get ['rand()'] to work, so i just used shuffle on the collection
# Dec 15th 2017, 16:15 neon1024 Sure it is aro, probably `->order(['RAND(field')])`
# Dec 15th 2017, 16:03 hmic ask google!
# Dec 15th 2017, 16:03 hmic you dont want to do that
# Dec 15th 2017, 16:03 aro is it possible in cake3 to order by rand()
# Dec 15th 2017, 15:49 obinoob I've noticed that Router::parse is deprecated in cakephp 3.5 cakephp documentation points that parseRequest should be used instead! However, it only accept requests, so now this code gets invalid, is there another new way of parsing a referer? $referer_params = Router::parse($this->referer('/', true));
# Dec 15th 2017, 15:42 neon1024 https://book.cakephp.org/3.0/en/core-libraries/events.html#getting-event-data-as-function-parameters
# Dec 15th 2017, 15:39 meder_ seems like it
# Dec 15th 2017, 15:38 meder_ does it just pass them by order in the array directly?
# Dec 15th 2017, 15:38 meder_ $options becomes the entity itself
# Dec 15th 2017, 15:38 meder_ if i pass ['entity' => $myEntity, 'poop' => 4] in the dispatcher itself, event $event, $options
# Dec 15th 2017, 15:38 hmic so pass the entity inside an array
# Dec 15th 2017, 15:38 hmic you are supposed to pass an array, or arrayobject?!
# Dec 15th 2017, 15:38 meder_ weird, that's confusing. it converts the array weirdly
# Dec 15th 2017, 15:35 meder_ ok
# Dec 15th 2017, 15:34 dereuromark dont pass it directly, use k=>v
# Dec 15th 2017, 15:32 neon1024 ..in the array I mean
# Dec 15th 2017, 15:31 neon1024 https://book.cakephp.org/3.0/en/core-libraries/events.html#dispatching-events
# Dec 15th 2017, 15:31 neon1024 I believe you can pass whatever you want in the third options param
# Dec 15th 2017, 15:29 meder_ it seems like it converts the entity to an array
# Dec 15th 2017, 15:29 meder_ can you pass an entity to a cake event dispatch as an argument?
# Dec 15th 2017, 15:12 admad so getting path with base is hardly gonna be missed and if someone still needs it then you can still do `$request->getAttribute('base') . $request->getRequestTarget()`.
# Dec 15th 2017, 15:11 admad yes, the actual request was with sub folder path, but inside the app you usually only care about the app relative path and the Router adds the base itself when generating urls
# Dec 15th 2017, 15:09 hmic so here() as well as the target should have it
# Dec 15th 2017, 15:09 hmic the request does to the uri including the sub folder, of course
# Dec 15th 2017, 15:09 hmic which is wrong all the time, isnt it?
# Dec 15th 2017, 15:05 admad but that only matters if you app is in a sub folder
# Dec 15th 2017, 15:04 admad only different is here() had the option to return path with or without "base" while the latter only returns without base.
# Dec 15th 2017, 15:03 admad here() included query string and so does getRequestTarget()
# Dec 15th 2017, 15:01 inoas it always returned the full path (without the query string I believe)
# Dec 15th 2017, 15:01 neon1024 I don’t think the functionality exists in the framework