Log message #4181886

# At Username Text
# Apr 3rd 2019, 08:57 birdy247 I am trying to connect to my cakebox with SFTP
# Apr 3rd 2019, 08:57 birdy247 @bravo-kernel just the man :slightly_smiling_face:
# Apr 3rd 2019, 08:43 challgren snake-venom I think you would do something along the following lines $response = $this->response->withStatus(401); $this->setResponse($response); $this->set(‘message’, ‘bad message’); $this->set(‘_serialize’, [‘message’]);
# Apr 3rd 2019, 08:28 challgren snake-venom you could throw an exception with a custom message. Im not 100% sure the correct way to do it.
# Apr 3rd 2019, 08:27 liaogz82 check with you guys, are there phpspec support for cakephp?
# Apr 3rd 2019, 08:25 snake-venom like status code and message in string
# Apr 3rd 2019, 08:24 snake-venom yes,, agree, but cant we send json with this header in anyway ?
# Apr 3rd 2019, 08:24 challgren In your controller function
# Apr 3rd 2019, 08:24 challgren Ohh I dont know zapier but `return $this->response->withStatus(401);` would return a 401 status
# Apr 3rd 2019, 08:24 birdy247 but cant get php storm to connect to the box via FTP
# Apr 3rd 2019, 08:23 birdy247 On the one I got it working, I think I used FTP
# Apr 3rd 2019, 08:23 birdy247 I did get it working on 1 computer, but not any others
# Apr 3rd 2019, 08:23 snake-venom <challgren> in zapier api i want to tell to zapier that my status code 401, 403, 200 or etc .. is this not a right way to do this ?
# Apr 3rd 2019, 08:23 birdy247 but I cant get it working
# Apr 3rd 2019, 08:23 birdy247 @dereuromark we use phpstorm and like to run test from that
# Apr 3rd 2019, 08:22 challgren HTTP Status messages are predefined
# Apr 3rd 2019, 08:22 snake-venom like message etc ?
# Apr 3rd 2019, 08:21 snake-venom can we send json with this $response = $this->response->withStatus(401); response using any way ?
# Apr 3rd 2019, 08:20 dereuromark me
# Apr 3rd 2019, 08:19 birdy247 is anyone using cakebox for development?
# Apr 3rd 2019, 08:19 birdy247 Mornin
# Apr 3rd 2019, 07:49 neon1024 Morning all :wave:
# Apr 3rd 2019, 06:48 roel Hello everyone, Currently I am using the Translate Behavior to save translations for my entities. When ever I save an entity which has no translations (yet), it will save that record with a `NULL` value in my "default" table and it will set the actual value in the translationsTable. I would like the value to be stored in the "default" table and only the translations in the translations table. Thanks in advance.
# Apr 3rd 2019, 06:32 conehead It is the tool I used: https://github.com/cakephp/upgrade
# Apr 3rd 2019, 06:30 dereuromark use my upgrade tool. it contains also vital tasks like skeleton.
# Apr 3rd 2019, 06:24 conehead Well I guess that won't be the only problem ;)
# Apr 3rd 2019, 06:19 kgb.acct.personal Make sure you have app/Config/bootstrap.php file
# Apr 3rd 2019, 06:17 conehead Any hints what the proper way is to upgrade CakePHP to the latest version?
# Apr 3rd 2019, 06:17 slackebot2 commands. To at first it looks like it has run successfully. Then I ran upgrade skeleton. No errors here. I think CakePHP itself has not been updated, so I updated it via composer (to 3.7), but then I get the following error: ```Warning: include(Cake/bootstrap.php): failed to open stream: No such file or directory in /app/webroot/index.php on line 104```
# Apr 3rd 2019, 06:17 conehead Good morning everyone! Can anyone tell if the upgrade tool (https://book.cakephp.org/3.0/en/upgrade-tool.html) is still working? Already managed to upgrade successfully to version 2.10.15 and now the next step would be to upgrade to cake 3. Downloaded the tool, installed it and executed it. Mostly got warnings (?) like these ``` *** Upgrade step AppUses *** ErrorHandler is not in the implicit class map ``` And afterwards a lot of move
# Apr 2nd 2019, 22:20 liaogz82 does anyone tries using dephpugger with cakephp?
# Apr 2nd 2019, 20:08 challgren https://book.cakephp.org/3.0/en/orm/table-objects.html#beforesave
# Apr 2nd 2019, 20:08 challgren @maymeow have your behavior attached and then override the beforeSave in your table
# Apr 2nd 2019, 20:08 maymeow how to use multiple `beforeSave()` some from behavior and one right in model ?
# Apr 2nd 2019, 20:00 challgren nm
# Apr 2nd 2019, 20:00 challgren How do I get to the 3.next book?
# Apr 2nd 2019, 19:10 ricksaccous hehe
# Apr 2nd 2019, 19:10 challgren woem @ricksaccous
# Apr 2nd 2019, 18:05 ricksaccous meow
# Apr 2nd 2019, 18:05 ricksaccous mewo
# Apr 2nd 2019, 15:28 flashios09 > If you have time to help I’d appreciate it. sure :slightly_smiling_face: