Log message #4135198

# At Username Text
# Apr 25th 2018, 15:19 lorenzo so far so good nosmallint :slightly_smiling_face:
# Apr 25th 2018, 15:18 nosmallint Hello everybody, this is my first time here so if I'm misbehaving somehow please tell me
# Apr 25th 2018, 15:18 itmpls i guess i could check for an id there
# Apr 25th 2018, 15:17 itmpls i wanted to only bind it by $entity->isNew()
# Apr 25th 2018, 15:17 dereuromark you can add it to normal payload patched in ($data array)
# Apr 25th 2018, 15:16 dereuromark as the name said there is no entity yet.
# Apr 25th 2018, 15:15 itmpls assuming it's by design and maybe there's a better event/way i can do it
# Apr 25th 2018, 15:14 itmpls is there a reason i can't access the entity in beforeMarshal? i'm trying to figure out the best place to put a randomly generated password to the entity which is required in validation, thus can't do it in beforesave/aftersave. at the controller level, i'm doing this in 3 areas so i don't want to copy that around
# Apr 25th 2018, 14:57 neon1024 As I know we have a few Danes in channel :slightly_smiling_face:
# Apr 25th 2018, 14:57 neon1024 Danish games are on sale! https://store.steampowered.com/sale/gamesfromdenmark/
# Apr 25th 2018, 14:18 neon1024 You’ve also forgotten that it might be in /vendor/me/mypackage/src/..
# Apr 25th 2018, 14:17 neon1024 If you put a placeholder in, people would literally create something like /plugin/ExamplePlugin and come here saying it doesn’t work
# Apr 25th 2018, 14:17 neon1024 If you didn’t put in the plugin name, how would the exception renderer know what it was?
# Apr 25th 2018, 14:13 jotpe Confirm you have created the file: Layout/Email/html/test.ctp in *one of the following paths*: xxx/src/Template/Plugin/MassMailer/Layout/Email/html/test.ctp xxx/plugins/MassMailer/src/Template/Layout/Email/html/test.ctp xxx/src/Template/Layout/Email/html/test.ctp
# Apr 25th 2018, 14:13 jotpe Maybe it would be good idea to change the Helptext then?
# Apr 25th 2018, 14:08 dereuromark fallbacks are usually a bad magic here
# Apr 25th 2018, 14:03 jotpe Thought it would be kind fallback when using layouts.
# Apr 25th 2018, 14:03 jotpe ah, yeah. Thinking helps :slightly_smiling_face:
# Apr 25th 2018, 14:02 dereuromark as always? :slightly_smiling_face: when dealing with plugin files maybe?
# Apr 25th 2018, 14:02 dereuromark setLayout(PluginName.test)?
# Apr 25th 2018, 14:01 jotpe I use `->setLayout('test')`. When I place the test.ctp file in `src/Template/Layout/Email/text` it's alright. When I place it in `/plugins/MassMailer/src/Template/Layout/Email/text` it's not recognized. Any ideas?
# Apr 25th 2018, 14:00 neon1024 @dereuromark I haven’t, sorry.
# Apr 25th 2018, 13:58 jotpe I've got a MissingLayoutException when sending a mit with layout in a plugin.
# Apr 25th 2018, 13:57 jotpe hey folks, long time no see.
# Apr 25th 2018, 13:32 dereuromark Did anyone face " possibly out of free disk space " in your cakebox vm?
# Apr 25th 2018, 13:06 neon1024 Are you all moved to HK already?
# Apr 25th 2018, 13:06 neon1024 Oh hey hmic!
# Apr 25th 2018, 12:52 lorenzo yay!
# Apr 25th 2018, 12:39 unclezoot it works, cheers
# Apr 25th 2018, 12:38 unclezoot diffInDays? that sounds good will try thanks!
# Apr 25th 2018, 12:38 lorenzo https://api.cakephp.org/chronos/1.1/class-Cake.Chronos.ChronosInterface.html#_diffInDays
# Apr 25th 2018, 12:37 unclezoot and adds 'ago'
# Apr 25th 2018, 12:37 hmic thats it!
# Apr 25th 2018, 12:37 unclezoot that seems to give weeks and days
# Apr 25th 2018, 12:37 lorenzo or `diffInDays()`?
# Apr 25th 2018, 12:37 hmic timeAgoInDays?
# Apr 25th 2018, 12:30 unclezoot i could just export it into Y-m-D then use php's DateTime but that seems a bit silly
# Apr 25th 2018, 12:29 unclezoot hi, i have a frozen date and im trying to pull out the number of days ago it was - any ideas? (i just want days, not weeks and days)
# Apr 25th 2018, 12:28 eax Worked beautifully! Thanks hmic and lorenzo! :)
# Apr 25th 2018, 12:12 hmic ;-)
# Apr 25th 2018, 12:12 lorenzo :slightly_smiling_face: