Log message #4228340

# At Username Text
# Feb 24th 2020, 10:24 spriz Ah! Neat! When you are ready to jump into more advanced (and fun!) Cake stuff - this is a great starting point https://josediazgonzalez.com/2016/12/01/creating-a-microblogging-platform!
# Feb 24th 2020, 10:24 simondotunix And i have also a book for PHP and MySQL beginners.
# Feb 24th 2020, 10:23 simondotunix I'm watching this tutorials right now: https://www.youtube.com/watch?v=kaqaZtpAkw4andlist=PLnBvgoOXZNCMdw9s1E6StlXaYZz0xti4n
# Feb 24th 2020, 10:23 spriz if you already know other programming languages I'd jump straight into https://book.cakephp.org/4/en/quickstart.html
# Feb 24th 2020, 10:22 spriz :clap: That's the spirit! I think this is a pretty good starting point if you are completely new to PHP https://www.codecademy.com/learn/learn-php :)
# Feb 24th 2020, 10:22 simondotunix Okay! :$. Maybe i can contribute in the feature..
# Feb 24th 2020, 10:21 spriz You are in for a treat! It's an awesome community, language and framework!
# Feb 24th 2020, 10:18 simondotunix But first, i have to take a look what i can do with CakePHP... next step would be, learning PHP :S
# Feb 24th 2020, 10:18 simondotunix Yep.. :)
# Feb 24th 2020, 10:17 spriz That's only an issue in case you do not have cake to eat... :)
# Feb 24th 2020, 10:16 simondotunix If i see the CakePHP Website, i get hungry to eat cake :) :cake:. Maybe, i'm not the only one :thinking_face:
# Feb 24th 2020, 10:10 simondotunix Hello! :face_with_cowboy_hat:
# Feb 24th 2020, 10:09 challgren Howdy
# Feb 24th 2020, 10:06 simondotunix Thank you :$
# Feb 24th 2020, 10:05 spriz Hello! Welcome!
# Feb 24th 2020, 09:58 simondotunix Hello Everybody!, best wishes from :flag-de: ! :$
# Feb 24th 2020, 09:16 spriz I just noticed that you cannot search across 4.x core and authentication/authorizations plugins book on https://book.cakephp.org/ :S That's a shame
# Feb 24th 2020, 09:15 spriz check out this https://book.cakephp.org/authentication/2/en/identifiers.html @cnizzardini
# Feb 24th 2020, 09:15 spriz @cnizzardini it is built into the cake 4 project AFAIK :)
# Feb 24th 2020, 09:13 alexdd55976 > there is no error does *jedi gesture*
# Feb 24th 2020, 08:43 javier.villanueva I have this error in local when I use post curl. Any idea? :(
# Feb 24th 2020, 08:03 javier.villanueva morning all
# Feb 24th 2020, 07:01 alexdd55976 @cnizzardini did you checkout https://github.com/ADmad/cakephp-jwt-auth?
# Feb 24th 2020, 07:00 alexdd55976 morning
# Feb 24th 2020, 04:04 cnizzardini Are there any JWT examples for CakePHP 4?
# Feb 23rd 2020, 20:07 trash.mail.collector yeah, that was it... I had an error in one of my apache config files... thanks @ndm
# Feb 23rd 2020, 19:46 ndm First thing I'd check is `mod_rewrite`
# Feb 23rd 2020, 19:45 trash.mail.collector I'm sure it's not being hit. I just can't figure out why not. / is definitely hitting the PagesController, but /users isn't hitting UsersController
# Feb 23rd 2020, 19:43 ndm What exactly do you mean by "_default error page_"? The default apache error page? That would mean your application isn't being hit.
# Feb 23rd 2020, 19:41 trash.mail.collector I have 'debug' => true in app.php and app_local.php, but I still only get the default error page (and no errors in the cakephp logs -- the 404 only shows up in apache's access log)
# Feb 23rd 2020, 19:40 ndm Enable debug mode to get a proper error page that details the actual error.
# Feb 23rd 2020, 19:37 trash.mail.collector Cake 4.0.3: I just created skeleton code for users ("bin/cake bake all users"), but I'm getting 404s for all of the actions when I try to access /users or /users/*. I have "$builder->fallbacks();" in config/routes.php, but even when I explicitly map a route (e.g., "$builder->connect('/users', ['controller' => 'Users', 'action' => 'index']);"), I still get a 404. Any ideas?
# Feb 23rd 2020, 17:24 noel So there are two ways to go here that I know of... A: use `$this->posts->get()` and then transform the data structure you get back. The disadvantage is you loop twice. B: write your own custom SQL and iterate just once, building up a custom data structure.
# Feb 23rd 2020, 17:21 noel Strange format you're looking for.
# Feb 23rd 2020, 17:20 noel You wouldn't override it, you just transform the request's output, as I understand it (I'm drawing on my cakephp 2.x knowledge here, it might be different in 3.x)
# Feb 23rd 2020, 17:15 hollistergraham123 How would I override the Hash method for the request
# Feb 23rd 2020, 17:14 hollistergraham123 This would be the expected output
# Feb 23rd 2020, 17:14 hollistergraham123 ```$post = $this->Posts->get(1, ['contain' => ['Categories']]; $post = [ 'id' => 1, 'name' => 'Lorem Epsium', 'categories' => [ 'categories' => [ [ 'id' => 1, 'name' => 'Lorem Epsium' ], [ 'id' => 2, 'name' => 'Lorem Epsium' ], ], '_ids' => [1, 2] ] ]```
# Feb 23rd 2020, 17:12 hollistergraham123 ```$post = $this->Posts->get(1, ['contain' => ['Categories']];```
# Feb 23rd 2020, 17:09 noel If I understand you correctly
# Feb 23rd 2020, 17:09 noel @hollistergraham123 yes look at `vendor/cakephp/src/Utility/Hash.php`