Log message #4115736

# At Username Text
# Feb 9th 2018, 01:43 ricksaccous what is it showing instead?
# Feb 9th 2018, 01:42 loginews I used that code in a controller.
# Feb 9th 2018, 01:41 loginews I am surprised that print_r($data) does not show the data. Any help?
# Feb 9th 2018, 01:40 loginews File uploaded https://cakesf.slack.com/files/U435V89H8/F978SAAPQ/-.txt / https://slack-files.com/T053DPNCM-F978SAAPQ-72f855ed2e
# Feb 8th 2018, 23:23 pedroseco in bootstrap.php for this example
# Feb 8th 2018, 23:23 pedroseco On the Event system, if I need to listen to a created event on a different plugin, for example, do I just need to : EventManager::instance()->on(Model.MyEvent) to make it run a particular callback?
# Feb 8th 2018, 22:33 etipaced (I’m referring to reading from the db, not handling request data.)
# Feb 8th 2018, 22:31 etipaced When does Cake convert db `datetime` columns into a `FrozenTime` object? I have a need to modify this behavior while the `datetime` value is still a string.
# Feb 8th 2018, 21:10 jameg83 Hi can anyone help with CakePdf? I’m getting an error500 ‘permission denied when executing command “usr/bin...”. I’ve checked binary file permissions and all users can execute.
# Feb 8th 2018, 21:10 madrid998 Is it possible to have a Table object with a hard-coded array as a record source?
# Feb 8th 2018, 20:23 kevin its just this crappy little if/else statement right now. I dont like that a ton.
# Feb 8th 2018, 20:21 kevin so right now, I have a default.ctp, and I’m checking to see if the user is logged in. If yes, I display one default.ctp, if no, I display a different one. Is there a better way to do this? like one default.ctp for auth’d vs another for unauth’d?
# Feb 8th 2018, 20:19 kevin thats @alysson-azevedo!!! That did the trick for me. I wasnt looking at $rules. I was trying to do it through validation.
# Feb 8th 2018, 19:39 sayed File uploaded https://cakesf.slack.com/files/U8SE5F2NN/F964M9EHZ/screen_shot_2018-02-08_at_20.34.31.png / https://slack-files.com/T053DPNCM-F964M9EHZ-f72efd5ed8
# Feb 8th 2018, 19:39 sayed thats why i was getting the error while trying to clear cache
# Feb 8th 2018, 19:39 sayed nevermind, found the issue, apcu (for the cli) was running on a different build of the php version
# Feb 8th 2018, 19:34 sayed I tried a composer reinstall but still the same error
# Feb 8th 2018, 19:34 sayed @bravo-kernel I can see here https://github.com/cakephp/cakephp/issues/8896 that you had the same issue as i have now
# Feb 8th 2018, 19:33 alysson-azevedo check cakedc/users https://github.com/CakeDC/users/blob/master/src/Model/Table/UsersTable.php
# Feb 8th 2018, 19:21 kevin I cant seem to find anything to specifically assist with that
# Feb 8th 2018, 19:21 kevin cake 3.5
# Feb 8th 2018, 19:21 kevin Is anyone aware of a good guide on how to perform data validation on a signup page, including verifying whether a user already exists or not?
# Feb 8th 2018, 18:47 sayed thanks once again !
# Feb 8th 2018, 18:46 sayed no it is exactly what i needed
# Feb 8th 2018, 18:46 hmic if it's not perfectly up to your case, you get at least a bunch of ideas
# Feb 8th 2018, 18:46 hmic but throttle is the thing to look into
# Feb 8th 2018, 18:46 hmic thats why i asked ;-)
# Feb 8th 2018, 18:45 sayed wrong term
# Feb 8th 2018, 18:45 sayed oke sure my bad
# Feb 8th 2018, 18:45 sayed Thanks guys
# Feb 8th 2018, 18:45 hmic which is stupid. especially for a webserver
# Feb 8th 2018, 18:45 hmic not "block concurrent"
# Feb 8th 2018, 18:45 hmic yeah. throttle
# Feb 8th 2018, 18:44 sayed Wel lets say i have an Api with an Endpoint, the client who is trying to submit data has a ‘retry mechanism’ which just goes crazy, so my log files are over 6 mb in like a couple of minutes. So basically i would like to block them after 200+ requests from which they get denied
# Feb 8th 2018, 18:44 bravo-kernel @sayed https://github.com/UseMuffin/Throttle
# Feb 8th 2018, 18:42 hmic why would you want that?
# Feb 8th 2018, 18:42 sayed Guys, anyone with a good idea on how to block concurrent requests to the server, with cake of course.
# Feb 8th 2018, 17:59 pedroseco ok só um probably doing something wrong on my "listen" part
# Feb 8th 2018, 17:51 hmic and thats all you need to do. listen to the event you emit. does not matter which plugin or app does what exactly. just match the events name and make sure to listen before emitting it (and the correct eventmanager is involved, usually go for the global one and attach early (bootstrap.php))
# Feb 8th 2018, 17:49 hmic pedroseco: you dont access events, you listen to them
# Feb 8th 2018, 17:37 pedroseco what's the best way to share a callback from a event between all my plugins? Ex acessing from PLugin X a particular event emitted by Plugin Y