Log message #4160510

# At Username Text
# Jul 19th 2018, 11:20 cakephp-slack Could it be that my helper function is called too late? I’ts called in the default layout ctp
# Jul 19th 2018, 11:19 cakephp-slack Thank you for your answers, I’ve tried `$this->request = $this->request->withHeader('X-Test', 'Test');` but no header still.
# Jul 19th 2018, 11:07 admad Should have a beta soon though
# Jul 19th 2018, 11:07 neon1024 https://github.com/cakephp/cakephp/releases Ah yes
# Jul 19th 2018, 11:07 admad 3.7 isn't released :)
# Jul 19th 2018, 11:07 neon1024 Thanks :thumbsup:
# Jul 19th 2018, 11:06 neon1024 3.6.7, time for an upgrade! :)
# Jul 19th 2018, 11:06 neon1024 Ooh, I wonder what I’m running
# Jul 19th 2018, 11:06 admad We missed it in 3.6
# Jul 19th 2018, 11:06 admad In 3.7
# Jul 19th 2018, 11:06 neon1024 ORLY
# Jul 19th 2018, 11:06 admad @neon1024 because it has?
# Jul 19th 2018, 11:05 neon1024 Just curious but how come View hasn’t got a `getRequest()` method yet?
# Jul 19th 2018, 11:00 dereuromark ;) Oh ok
# Jul 19th 2018, 10:57 graziel in sandbox i mean
# Jul 19th 2018, 10:57 graziel @dereuromark the only thing i would change is use some real names instead of 'foo', 'bar', 'xyz' : )
# Jul 19th 2018, 10:56 dereuromark I am curious what the haters out there have to say about the framework and plugins :P https://www.reddit.com/r/PHP/comments/904bwg/beginner_tutorial_cakephp_tagging/
# Jul 19th 2018, 10:55 flavius so `$this->request = $this->request->withHeader('X-Test', 'Test');`
# Jul 19th 2018, 10:53 dereuromark but either way, you need to reassign it as per docs: $this->request = ... - otherwise the modification is lost and useless.
# Jul 19th 2018, 10:53 dereuromark ideally your helper doesnt do that, but your controller or component.
# Jul 19th 2018, 10:53 dereuromark yeah its called immutability
# Jul 19th 2018, 10:45 cakephp-slack Is there a reason why doing `$this->request->withHeader('X-Test', 'Test');` from my custom html helper does not send the header? (CakePHP 3.6)
# Jul 19th 2018, 10:36 dereuromark The more out of the box, the cleaner IMO.
# Jul 19th 2018, 10:36 dereuromark We will always need most of it, I am curious however where we can cut down on it using a different resolving strategy in core :slightly_smiling_face:
# Jul 19th 2018, 10:20 neon1024 @dereuromark Will all the docblocks that the IdeHelper adds be needed still when Cake 4 implements all the correct type hinting? I’m guessing that some magic access stuff will still need to be included right?
# Jul 19th 2018, 10:09 dereuromark @admad Small IdeHelper greetz from me: https://github.com/ADmad/CakePHP-HybridAuth/pull/121 thanks!
# Jul 19th 2018, 10:01 josbeir ah nm you already found it :slightly_smiling_face:
# Jul 19th 2018, 10:00 josbeir did you pass 'associated' => [ 'Table' ] when saving?
# Jul 19th 2018, 09:50 neon1024 :rubberduck:
# Jul 19th 2018, 09:50 neon1024 Yes, yes I do
# Jul 19th 2018, 09:49 neon1024 It’s an association though, do I need to mark the parent entity dirty in order for the associations to be persisted?
# Jul 19th 2018, 09:48 neon1024 I have no validation errors, my data is marshalled correctly, my fields are marked dirty, yet no changes are persisted! Any ideas?
# Jul 19th 2018, 09:45 blancessanchez30 i now understand, thank you :slightly_smiling_face:
# Jul 19th 2018, 09:45 blancessanchez30 for creating a cms blog
# Jul 19th 2018, 09:36 dereuromark You should even in 2.x already be using the 3.x stuff using shimming^^ ( https://github.com/dereuromark/cakephp-shim/blob/2.x/docs/Auth.md )
# Jul 19th 2018, 09:35 dereuromark Ces: what do you need it for?
# Jul 19th 2018, 09:34 neon1024 Nothing to stop you writing a hasher for Cake 2 which uses `password_hash()` though I guess
# Jul 19th 2018, 09:33 neon1024 Perhaps this is helpful?
# Jul 19th 2018, 09:33 neon1024 https://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#hashing-passwords
# Jul 19th 2018, 09:32 neon1024 ..and for that reason Cyril, I’m out.
# Jul 19th 2018, 09:32 neon1024 Cake 2?