Log message #4153778

# At Username Text
# Jun 25th 2018, 09:57 josbeir public function test() { $this->getRequest()->allowMethod('post'); die('hello world'); }
# Jun 25th 2018, 09:57 josbeir it seems to be working correct over here @neon1024 except for the csrf exception :slightly_smiling_face:
# Jun 25th 2018, 09:54 josbeir nah
# Jun 25th 2018, 09:53 neon1024 Is it case sensitive?!
# Jun 25th 2018, 09:52 neon1024 :raised_hands:
# Jun 25th 2018, 09:52 neon1024 `var_dump($this->getRequest()->getMethod());` `$this->getRequest()->allowMethod('post');`
# Jun 25th 2018, 09:51 neon1024 So the request is post, then it denies post?!
# Jun 25th 2018, 09:51 neon1024 File uploaded https://cakesf.slack.com/files/U1BT622HW/FBD82C80K/screen_shot_2018-06-25_at_10.50.02.png / https://slack-files.com/T053DPNCM-FBD82C80K-590cf85c1c
# Jun 25th 2018, 09:49 josbeir indeed
# Jun 25th 2018, 09:49 neon1024 Yeah that wouldn’t matter, it should still give a 200 with whatever validation failure
# Jun 25th 2018, 09:48 josbeir altho that would be weird
# Jun 25th 2018, 09:48 neon1024 Last time I had this it was the Search.Prg behaviour redirecting to GET, but this method is called `find` and not `index`
# Jun 25th 2018, 09:48 josbeir maybe because you don't pass any post data ?
# Jun 25th 2018, 09:48 neon1024 Guess I’ll try Postman
# Jun 25th 2018, 09:47 josbeir @neon1024 that should work.. in theory :P
# Jun 25th 2018, 09:46 josbeir np
# Jun 25th 2018, 09:46 unclezoot ill read up, thanks
# Jun 25th 2018, 09:46 josbeir $articles->touch($article); as described in the docs
# Jun 25th 2018, 09:46 josbeir thats possible too using $this->Table->touch()
# Jun 25th 2018, 09:46 unclezoot thanks josbeir, unfortunately i need to log who last touched the record too - have never been able to get Muffin\Footprint working reliably so i do the save manually
# Jun 25th 2018, 09:44 neon1024 `curl -v -X POST`
# Jun 25th 2018, 09:44 neon1024 What have I done wrong? I’m using `$this->getRequest()->allowMethod('post');` yet when I curl to my url, I get `HTTP/1.1 405 Method Not Allowed`
# Jun 25th 2018, 09:42 josbeir maybe that solves your issue
# Jun 25th 2018, 09:42 josbeir depending on what you are trying to do, check https://book.cakephp.org/3.0/en/orm/behaviors/timestamp.html
# Jun 25th 2018, 09:41 unclezoot ill give it a go, cheers
# Jun 25th 2018, 09:41 unclezoot thanks, i was hopeful id be able to pass something into the request data without having to play with query expressions
# Jun 25th 2018, 09:38 josbeir => https://book.cakephp.org/3.0/en/orm/query-builder.html#using-sql-functions
# Jun 25th 2018, 09:37 josbeir 'created' => $query->func()->now(),
# Jun 25th 2018, 09:36 unclezoot morning, is it possible to save the value NOW()? i seem to remember there was a trick to it
# Jun 25th 2018, 09:22 josbeir it should return a list of plugins from vendor/cakephp-plugins.php
# Jun 25th 2018, 09:21 josbeir ok, so it looks that Configure::read('plugins') returns null in ConsoleIntegrationTestCase
# Jun 25th 2018, 09:21 birdy247 @josbeir awesome, thanks
# Jun 25th 2018, 09:04 josbeir calling $this->addPlugin will 'fall back' to old style plugin loading if Plugin.php is not found
# Jun 25th 2018, 09:03 josbeir since 3.6.6 there is backwards compatibility
# Jun 25th 2018, 09:02 birdy247 To load a plugin using the "new style", does that plugin have to have a Plugin.php file?
# Jun 25th 2018, 09:00 birdy247 Is this essentially a bit like the Application.php
# Jun 25th 2018, 09:00 birdy247 I notice there is a new Plugin.php file when I bake plugins now
# Jun 25th 2018, 08:57 birdy247 @bogdan I can recomended the duplicate bhaviour
# Jun 25th 2018, 08:56 birdy247 mormomg
# Jun 25th 2018, 08:46 josbeir its because of the dynamic plugin loading stuff
# Jun 25th 2018, 08:43 josbeir throwing a bunch of Cake\Core\Exception\MissingPluginException: