Log message #4153797

# At Username Text
# Jun 25th 2018, 11:05 willem haha it works, i tried a bake model etc. and it is working great. will need some small modifications i guess. nice job!
# Jun 25th 2018, 10:53 hmic thing is: you need to run on windows if you want to use sqlserver with (cake)php IMHO
# Jun 25th 2018, 10:52 hmic willem: you can configure the ORM to work with your table structure, sure.
# Jun 25th 2018, 10:42 willem What would be the way to set up a situation where i have an existing sqlserver database with tables that do not adhere to the cakephp conventions. I would like to use Cakes ORM to fetch and save data. Is this possible?
# Jun 25th 2018, 10:37 neon1024 Or use your own event?
# Jun 25th 2018, 10:29 unclezoot fair enough
# Jun 25th 2018, 10:27 hmic same like validation errors get passed back e.g.
# Jun 25th 2018, 10:27 hmic unclezoot, the entity
# Jun 25th 2018, 10:24 unclezoot if you wanted to pass diagnostic messages back to the controller via ->afterSave(), where would be the place to do it?
# Jun 25th 2018, 10:15 hmic ;-)
# Jun 25th 2018, 10:10 neon1024 Seems I have a allowMethod(‘get’) in a trait which was included in the controller
# Jun 25th 2018, 10:06 neon1024 Ooh
# Jun 25th 2018, 10:05 hmic might need to open a uk limited in the process to transfer my german company properties - while the uk is still in the eu ;-)
# Jun 25th 2018, 10:05 hmic i'm trying to... kind of
# Jun 25th 2018, 10:04 neon1024 Did you emigrate yet?
# Jun 25th 2018, 10:04 neon1024 Oh moin hmic!
# Jun 25th 2018, 10:04 hmic isn't the actual action method to late to allow, if it's forbidden by other means by default?
# Jun 25th 2018, 10:01 josbeir :bomb:
# Jun 25th 2018, 10:00 neon1024 Time to nuke the site from orbit.
# 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`