Log message #4192797

# At Username Text
# Jul 11th 2019, 09:47 s.ahmad Can i get env value in controller, template and in component?
# Jul 11th 2019, 09:46 s.ahmad Hey guys
# Jul 11th 2019, 09:43 neon1024 @admad *cough*
# Jul 11th 2019, 09:39 mehov Tried `\Cake\Utility\Hash::combine($items, '{n}.type', '{n}.name');` but it gets me only the last names per type
# Jul 11th 2019, 09:27 slackebot using one of the `\Cake\Utility\Hash` functions?
# Jul 11th 2019, 09:27 mehov Hey guys, I have: $items = [ [ 'type' => 'fruit', 'name' => 'apple', ], [ 'type' => 'fruit', 'name' => 'pear', ], [ 'type' => 'fruit', 'name' => 'banana', ], ]; Do you think there is an easy way to have it converted to $items = [ 'fruit' => [ 'apple', 'pear', 'banana', ], ];
# Jul 11th 2019, 09:24 neon1024 In 3.7
# Jul 11th 2019, 09:24 neon1024 So ‘joinTable’ doesn’t take a FQDN
# Jul 11th 2019, 09:09 neon1024 We got to No 1 in the world chasing, so we shall see!
# Jul 11th 2019, 09:08 admad @neon1024 Aus won the toss, means Eng should start packing their bags :slightly_smiling_face:
# Jul 11th 2019, 09:00 patox44 Hello. How Can I unset part of array which I got in response->json via REST (GET Method)?
# Jul 11th 2019, 00:48 noel (I don't have a view btw... I'm assuming that the RequestHandler component does this for me... but I don't know how to provision the data for it)
# Jul 11th 2019, 00:47 noel So how do I set data for a json view?
# Jul 11th 2019, 00:44 noel but it doesn't seem to work for me. I just get an output of `null` when I browse to the route.
# Jul 11th 2019, 00:44 noel Tried this: http://www.bravo-kernel.com/2015/04/how-to-build-a-cakephp-3-rest-api-in-minutes/
# Jul 11th 2019, 00:44 noel I'm trying to create a REST api and I'm getting stuck
# Jul 11th 2019, 00:13 dereuromark defaults + custom + local overwrites (ideally most come from ENV anyway, but meeh)
# Jul 11th 2019, 00:13 dereuromark either way, this is my recommendation: https://sandbox.dereuromark.de/pages/best-practices#config
# Jul 11th 2019, 00:13 dereuromark config, doesnt matter
# Jul 11th 2019, 00:13 noel wtf is the engine? :slightly_smiling_face:
# Jul 11th 2019, 00:11 dereuromark 2nd is the engine
# Jul 11th 2019, 00:11 dereuromark read the method arguments
# Jul 11th 2019, 00:10 noel but isn't that loading `app.default.php`, not `app.php`?
# Jul 11th 2019, 00:10 dereuromark jep
# Jul 11th 2019, 00:10 noel is it this? `Configure::load('app', 'default', false);`
# Jul 11th 2019, 00:09 noel I'm not seeing how bootstrap loads this?
# Jul 11th 2019, 00:07 dereuromark see https://github.com/dereuromark/cakephp-sandbox/tree/master/config and the bootstrap loading them.
# Jul 11th 2019, 00:06 dereuromark I personally name them differently to clarify this
# Jul 11th 2019, 00:06 dereuromark it is the app local file
# Jul 11th 2019, 00:03 noel why is `config/app.php` included in `.gitignore`?
# Jul 10th 2019, 23:26 challgren and vendor/bin/*
# Jul 10th 2019, 23:26 cleptric *I also use this guide all the time :)
# Jul 10th 2019, 23:26 challgren you’d have to edit the shebang in ./bin/cake
# Jul 10th 2019, 23:26 cleptric I gave up on MAMP a while ago. It has way to many problems. As brew became more and more stable recently, I second @challgren guide and recommend you give it a try :slightly_smiling_face:
# Jul 10th 2019, 23:19 cleptric There is no need for a cake plugin. Our implementation required one custom authenticator (AuthComponent) only. Well, an access token gives you access to a specific scope and doesn't contain any information to properly authenticate a user. But it really depends what you are going to use OAuth for. Some grant types can be used for authentication as well
# Jul 10th 2019, 23:15 noel Is there not perhaps a way to force bake to use a particular version of PHP?
# Jul 10th 2019, 23:14 noel Thanks but I'm sold on MAMP.
# Jul 10th 2019, 22:37 challgren @noel https://getgrav.org/blog/macos-mojave-apache-multiple-php-versions this is a great resource for Mac users
# Jul 10th 2019, 22:33 noel It seems that `bin/cake bake` is using the default version of PHP that ships with mojave (which is 7.1.23 without `intl`). So it's not using the version of php I've specified in my `~/.profile`.
# Jul 10th 2019, 22:14 noel Also I've had to change macs and I've run into the whole `intl` problem again. Can't run cake bake because `intl` extension is not enabled. However if I do `php -m` at the shell I can see `intl` in that list. How do I solve this?
# Jul 10th 2019, 22:06 noel Hi guys. Any chance of an updated Sublime Text package for CakePHP?