Log message #4018252

# At Username Text
# Apr 20th 2017, 09:23 crazycoder i think it is just setting application/json in content-type header
# Apr 20th 2017, 09:22 Neon1024 I think you’d get more out of it building your own, I know I did
# Apr 20th 2017, 09:20 crazycoder i ma lazy this morning ahah
# Apr 20th 2017, 09:20 crazycoder Neon1024, can you post you middleware that set the header ? :D
# Apr 20th 2017, 09:19 crazycoder ( i am removing the .json extension too )
# Apr 20th 2017, 09:19 crazycoder what a framework! awesome
# Apr 20th 2017, 09:19 crazycoder ok
# Apr 20th 2017, 09:18 Neon1024 If you don’t then you could write your own detector, but I’ve had no issues with is(‘json’) personally
# Apr 20th 2017, 09:17 crazycoder should i check the headers manually?
# Apr 20th 2017, 09:17 crazycoder Neon1024, do you not trust is('json') ? :D
# Apr 20th 2017, 09:17 Neon1024 Seems okay to me, although I’d trust parsing it with PHP more than what I think ;p
# Apr 20th 2017, 09:16 crazycoder ?
# Apr 20th 2017, 09:16 crazycoder Neon1024, looks good to you https://gist.github.com/anonymous/b87f711b96154aed69ad57a3d742393c#file-test-php-L30-L34
# Apr 20th 2017, 09:15 Neon1024 https://book.cakephp.org/3.0/en/controllers/request-response.html#checking-request-conditions
# Apr 20th 2017, 09:15 crazycoder awesome
# Apr 20th 2017, 09:15 Neon1024 $this->request->is(‘json’)
# Apr 20th 2017, 09:15 Neon1024 Yes it does
# Apr 20th 2017, 09:14 Neon1024 Buongiorno!
# Apr 20th 2017, 09:14 crazycoder to avoid setting the type to "html"
# Apr 20th 2017, 09:14 crazycoder i am chaning my custom ExceptionRenderer
# Apr 20th 2017, 09:14 crazycoder is('json') exists?
# Apr 20th 2017, 09:14 crazycoder morning!
# Apr 20th 2017, 09:14 Neon1024 Morning crazycoder
# Apr 20th 2017, 09:13 crazycoder Neon1024, ! :D
# Apr 20th 2017, 09:13 crazycoder hello
# Apr 20th 2017, 08:41 rrueco Neon1024, It's ok tho. It's learning
# Apr 20th 2017, 08:38 Neon1024 https://book.cakephp.org/3.0/en/orm/query-builder.html#adding-joins
# Apr 20th 2017, 08:38 nv-vasu ?
# Apr 20th 2017, 08:38 nv-vasu is this a solution to use custom join in cakephp3 as same in cakephp2 we did ?
# Apr 20th 2017, 08:37 nv-vasu $result = $this->Category->findAll(fields=>['id','Topic.id'], 'conditions'=>['Topic.name'=>'s'],'join'=>['Topic' => ['table' => 'topics','type' => 'INNER','conditions' => 'Topic.category_id = Category.id']]);
# Apr 20th 2017, 08:37 Neon1024 ChrisApp: Yes, I think so, either dereuromark, or hmic were talking about it. I think there is a PR open for discussion
# Apr 20th 2017, 08:37 nv-vasu hi.,,, $result = $this->Category->findAll(fields=>['id','Topic.id'], 'conditions'=>['Topic.name'=>'s'],'join'=>['Topic' => [ 'table' => 'topics', 'type' => 'INNER', 'conditions' => 'Topic.category_id = Category.id' ]]);
# Apr 20th 2017, 08:37 Neon1024 dereuromark, ^
# Apr 20th 2017, 08:37 ChrisApp is there any proposal for decoupling Pagination logic from Controller layer?
# Apr 20th 2017, 08:35 Neon1024 Which ones? Perhaps can we can clarify them for you
# Apr 20th 2017, 08:34 rrueco it's always great to drop by here every day. But sometimes I get confused with words/terms being used haha :v:
# Apr 20th 2017, 08:33 Neon1024 Heya
# Apr 20th 2017, 08:32 byz Hi guys
# Apr 20th 2017, 08:24 voycey ah ok - learn something every day :slightly_smiling_face:
# Apr 20th 2017, 08:24 admad @voycey webserver never receives the URL fragment, so no server side lang can help you
# Apr 20th 2017, 08:01 Neon1024 Haha