Log message #4192350

# At Username Text
# Jul 9th 2019, 00:37 newyorknick Works fine when I’m loading routes from the `CakeDC/Users` plugin itself but when I hit my pages controller it’s not loading the user from the session
# Jul 9th 2019, 00:35 newyorknick I know I can hack it in my pages controller but I know theres a simpler solution and I’m having a hard time figuring out the recommended way
# Jul 9th 2019, 00:34 newyorknick Hey guys I’m having a hard time populating the `$user` var properly in my `/pages` controller templates after installing the CakeDC/Users plugin.
# Jul 8th 2019, 23:14 challgren As for videos I would say most of them are going to be old and a little outdated. The book.cakephp.org website is up to date with all the newest 3.8 stuff
# Jul 8th 2019, 23:14 challgren @davorminchorov https://book.cakephp.org/3.0/en/tutorials-and-examples.html is a great start to learn the framework
# Jul 8th 2019, 21:35 ricksaccous i figured it out by the way, my earlier problem, i was setting the field to null before the save and that was nullifying all errors
# Jul 8th 2019, 21:33 davorminchorov Hi, I am new to CakePHP and I am about to start working on a new project. Can someone suggest to me a good video resource for learning the framework and its features?
# Jul 8th 2019, 20:06 ricksaccous oops
# Jul 8th 2019, 20:06 ricksaccous ```php->allowEmptyString( 'email', function ($context) { return false; }, self::getCommonEmptyMessage('Email') );
# Jul 8th 2019, 20:06 ricksaccous I have no idea why
# Jul 8th 2019, 20:06 ricksaccous but the allowEmptyString error message is not displaying
# Jul 8th 2019, 20:05 ricksaccous so the field is displaying as required
# Jul 8th 2019, 17:12 cleptric As oauth is only about authorization, it’s out of the scope of the authentication plugin
# Jul 8th 2019, 17:12 cleptric @martin If your interested in oauth server, league php implemented one which works quite well
# Jul 8th 2019, 16:31 genellern @half2me did you find out why? I had the same issue last week but haven't had time to figure out what's going on
# Jul 8th 2019, 15:58 niel.archer @olanowsubomi have you read https://book.cakephp.org/3.0/en/installation.html
# Jul 8th 2019, 15:46 olanowsubomi the issue is i read that somewhere as part of setting up cakephp for application development but i suppose the author is using old version of cake php to teach this which the newer one i downloaded does not contain, but are you insunuating i dont need to set this up in newer version of cakephp to send email from my app.?
# Jul 8th 2019, 15:38 niel45 @olanowsubomi, can't understand your question
# Jul 8th 2019, 15:38 info315 are you guys serious on deprecated argument order for allowEmptyString? ``` $ grep -ri '\->allowEmptyString(' | wc -l 364 ``` I ask because I don't want to need to change it back with 4.x
# Jul 8th 2019, 15:37 em. @admad @neon1024 I know its unusual. But its allowed by the HTTP spec. https://tools.ietf.org/html/rfc7230#section-3.3 Guzzle allows it. Most clients do.
# Jul 8th 2019, 15:36 olanowsubomi is there no one to help with my question?
# Jul 8th 2019, 15:30 olanowsubomi hello is anybody there?
# Jul 8th 2019, 15:29 niel45 @neon1024, any request method can have a body, and nothing should be assumed by that
# Jul 8th 2019, 15:29 olanowsubomi or can anybody tell me the file path to this from my my_app_name?
# Jul 8th 2019, 15:24 olanowsubomi ?
# Jul 8th 2019, 15:24 olanowsubomi the list of files in the config file are schema, .en.default, app.default, app, bootstrap, bootstrap_cli, paths, requirements, routes which file contain those code
# Jul 8th 2019, 15:15 admad @em. How can a GET request have a body?
# Jul 8th 2019, 15:15 neon1024 So your version might be out of date?
# Jul 8th 2019, 15:15 neon1024 There also isn’t a core.php.default any more https://github.com/cakephp/cakephp/tree/2.x/app/Config
# Jul 8th 2019, 15:14 neon1024 https://book.cakephp.org/2.0/en/installation.html
# Jul 8th 2019, 15:12 neon1024 The `core.php.default` file gets copied to `core.php` so edit that one
# Jul 8th 2019, 15:11 slackebot 'smtp_mail_from_name', 'noreply' ); Configure::write( 'smtp_mail_from_addr', 'tricks.cake@gmail.com' );' so that my app could send an email.
# Jul 8th 2019, 15:11 olanowsubomi though i have set up the database but i still need to set up this'// SMTP Configure::write( 'smtp_type', 'tls' ); Configure::write( 'smtp_timeout', 60 ); Configure::write( 'smtp_host', 'smtp.gmail.com' ); Configure::write( 'smtp_port', 465 ); Configure::write( 'smtp_user', 'tricks.cake@gmail.com' ); Configure::write( 'smtp_password', '' ); Configure::write( 'smtp_encryption', 'ENC_SSL' ); Configure::write(
# Jul 8th 2019, 15:11 neon1024 I don’t understand the question
# Jul 8th 2019, 15:08 olanowsubomi hello, please can anyone help me with cakephp file arrangement, in up my database i want to access this file /app/config/core.php.default
# Jul 8th 2019, 15:04 neon1024 Perhaps it shouldn’t assume and should just throw an exception?
# Jul 8th 2019, 15:04 neon1024 So it stands to reason that the client assumes you meant Post
# Jul 8th 2019, 15:03 neon1024 A post request would have a body
# Jul 8th 2019, 15:03 neon1024 A get request doesn’t have a body, it would have query params
# Jul 8th 2019, 15:03 neon1024 Sounds sensible to me
# Jul 8th 2019, 15:03 neon1024 Oh, wait, that would be Post to Get