Log message #4125366

# At Username Text
# Mar 15th 2018, 15:57 patsuckow Hello. Can someone advise a more correct decision? https://stackoverflow.com/questions/49303965/is-there-a-method-for-getting-the-timezone-type-cakephp-3-x
# Mar 15th 2018, 15:53 admad i happy will all the changes you have suggested in the roadmap. It's just that a huge diff makes it quite tedious to review and increases the chances of overlooking something
# Mar 15th 2018, 15:04 neon1024 If you need me to explain any of the diff, let met know :slightly_smiling_face:
# Mar 15th 2018, 15:03 neon1024 As it’s being targeted at a major release, I didn’t think about backwards compatibility
# Mar 15th 2018, 15:03 neon1024 If not, let me know and I’ll just keep it in a fork
# Mar 15th 2018, 15:03 neon1024 I hope that some of the code is at least a little useful to the project
# Mar 15th 2018, 15:02 neon1024 @admad Apologies for the bad PR. I didn’t keep my mind in scope of a single task. I’m too used to just working though lots of amends in one block.
# Mar 15th 2018, 15:01 devito hmmmm
# Mar 15th 2018, 14:58 neon1024 Perhaps a DispatchFilter in Cake 2?
# Mar 15th 2018, 14:55 devito what about 2?
# Mar 15th 2018, 14:55 devito mm, middleware is a good spot for it in 3
# Mar 15th 2018, 14:54 neon1024 If I was in Cake 3, I’d use Middleware myself
# Mar 15th 2018, 14:52 devito Hello all, where is the best place to set no cache and secure tls headers for a cake 2 / cake 3 app? App controller?
# Mar 15th 2018, 14:51 neon1024 Have a look in DebugKit!
# Mar 15th 2018, 14:45 johnwayne Left or Inner ?
# Mar 15th 2018, 14:45 johnwayne What is default join type if its not defined in Model
# Mar 15th 2018, 14:20 dereuromark Yesterday I was finally able to finish the blog post about upcoming 3.6 release: https://www.dereuromark.de/2018/03/14/cakephp-3-6-is-coming/
# Mar 15th 2018, 13:18 roel :slightly_smiling_face:
# Mar 15th 2018, 13:18 roel Thanks anyway :+1:
# Mar 15th 2018, 13:10 dereuromark The mocking part is outdated there :slightly_smiling_face:
# Mar 15th 2018, 13:10 alysson-azevedo that's what i'm doing hehe
# Mar 15th 2018, 13:10 roel Ok, I will try to do that :P
# Mar 15th 2018, 13:10 admad i ocassionally look here https://gist.github.com/loonies/1255249 when i need to check method sigs
# Mar 15th 2018, 13:09 admad @alysson-azevedo guess what, i learned unit testing just by reading core tests, never read phpunit's documentation :slightly_smiling_face:
# Mar 15th 2018, 13:06 dereuromark It is actually not - you just need to look how its already done in core or plugins and do the same, e.g. assertSame() calls etc. Super simple.
# Mar 15th 2018, 13:05 alysson-azevedo i tried to read PHPUnit documentation, but the learning curve is just too steep
# Mar 15th 2018, 13:03 dereuromark not to speak of the core cake repo, which has nice coverage to learn from
# Mar 15th 2018, 13:03 dereuromark Also see https://github.com/FriendsOfCake/awesome-cakephp and the tons of plugins there, they all are using phpunit test cases. learn from them.
# Mar 15th 2018, 13:02 generitter Read the PHPUnit documentation. CakePHP enhances the unit testing with fixtures and what not, but most of the how to is in PHPUnit. I would also write my business logic code in service objects so that database layer calls could be mocked easily.
# Mar 15th 2018, 12:58 roel Hello everyone, I want to learn how to test my code with php unittest. Does anyone have any pointers/best practices or tutorials I can read other than the CakePHP test documentation? It would be great if there is a tutorial available that focuses on the creating of unit tests of the "Tutorials and Examples" within the CakePHP documentation. Thanks in advance :slightly_smiling_face:
# Mar 15th 2018, 12:51 jason001 hey guys, does anyone have any experience using wkhtmltopdf with cakephp3? i'm running into some problems setting the cookie
# Mar 15th 2018, 12:48 alysson-azevedo yes
# Mar 15th 2018, 12:48 alysson-azevedo yrd
# Mar 15th 2018, 12:47 graziel maybe you have some iframe hiding css in theme
# Mar 15th 2018, 12:44 bnb_dev can some one let me know the problem is where?
# Mar 15th 2018, 12:32 bnb_dev How I fix it?
# Mar 15th 2018, 12:31 bnb_dev when I use $this->viewBuilder()->theme('MyTheme'); $this->viewBuilder()->layout('MyTheme.default'); in beforeRender() then DebugKit does not show.
# Mar 15th 2018, 12:26 saeideng >can we built tree list for multi list, yes
# Mar 15th 2018, 12:23 saeideng @
# Mar 15th 2018, 12:18 yadav.manu36 in the appController right?
# Mar 15th 2018, 12:17 alysson-azevedo you might want use something like ``` if (!array_key_exists('_serialize', $this->viewVars) andand in_array($this->response->getType(), ['application/json', 'application/xml']) ) { $this->set('_serialize', true); } ```