Log message #4048765

# At Username Text
# Jul 6th 2017, 10:43 juststeveking IS there anyway I can use this: `public $uses = array('AuditLog.Audit');`
# Jul 6th 2017, 10:42 savant @rudy1976s https://secure.php.net/manual/en/function.get-called-class.php
# Jul 6th 2017, 10:42 juststeveking yes
# Jul 6th 2017, 10:41 savant TableRegistry::get(‘Plugin.Table’)
# Jul 6th 2017, 10:41 rudy1976s post controller extends base yes
# Jul 6th 2017, 10:41 juststeveking How can I pull the model from a plugin into my controller?
# Jul 6th 2017, 10:41 savant rudy1976s: do you mean a parent class?
# Jul 6th 2017, 10:40 rudy1976s I have created a base controller with the purpose of centralizing actions which are shared across the application: for example in my post index list I have a link which should points to /base/clone is there a way to know in baseController information about the post controller, without passing model as a parameter?
# Jul 6th 2017, 10:40 jarard01 I wa slooking for this: Configure::write('adminEmail','...
# Jul 6th 2017, 10:38 rudy1976s I try to explain
# Jul 6th 2017, 10:38 savant rudy1976s why is your controller calling another controller?
# Jul 6th 2017, 10:37 rudy1976s is there a way in a controller to know information from a caller controller ?
# Jul 6th 2017, 10:37 savant variables
# Jul 6th 2017, 10:37 jarard01 what are the vars called which you can set in the bootstrap, ie admin email or similar
# Jul 6th 2017, 10:33 rudy1976s Good morning!
# Jul 6th 2017, 09:40 Martin` hi
# Jul 6th 2017, 09:40 savant hi
# Jul 6th 2017, 09:33 adriencs sup
# Jul 6th 2017, 09:25 savant https://aws.amazon.com/premiumsupport/knowledge-center/rds-change-time-zone/
# Jul 6th 2017, 09:24 glanceded thank you, for the moment I'm using aws RDS and I don't know how to change the db timezone, but the server's yes, I can change. I will follow your tip and I will move the db to my own server so I can control the environment
# Jul 6th 2017, 09:23 savant but using utc always is a good default
# Jul 6th 2017, 09:23 savant your app should follow the server
# Jul 6th 2017, 09:23 savant or at least move your server to utc +3
# Jul 6th 2017, 09:22 savant always use UTC
# Jul 6th 2017, 09:22 savant UTC
# Jul 6th 2017, 09:22 glanceded should them both be on same utc or utc + 0?
# Jul 6th 2017, 09:20 glanceded @savant yes, they are different timezones. One is utc +2 and the db is utc +3. But cake is running on utc +2.
# Jul 6th 2017, 09:18 neothermic ahh, cool
# Jul 6th 2017, 09:18 savant probably
# Jul 6th 2017, 09:18 savant and wrap that in a try catch
# Jul 6th 2017, 09:18 savant and return the result
# Jul 6th 2017, 09:18 savant neothermic you can call render manually
# Jul 6th 2017, 09:18 neothermic In cake2, if I'm using a media view, is there any way to catch a NotFoundException if the file isn't found? I see no easy place to try/catch that error, as you just set the viewClass to Media and set some params, and cake does the rest.
# Jul 6th 2017, 09:17 glanceded let me check
# Jul 6th 2017, 09:16 savant they should be the same timezone, and should be utc
# Jul 6th 2017, 09:16 savant are your database and server on different timezones?
# Jul 6th 2017, 09:16 glanceded when it's suposed to be 15 seconds
# Jul 6th 2017, 09:16 glanceded But it seems the difference is about one hour
# Jul 6th 2017, 09:15 glanceded create a guid, add it to db and let cake take care of created and modified fields. Right after that I compare it with Chronos ->gt and I allow a window of 15 minutes for that token to be active.
# Jul 6th 2017, 09:14 glanceded for not converting the timezone...or I don't know, let me give an example
# Jul 6th 2017, 09:13 savant a Chronos setting for what?