Log message #4152853

# At Username Text
# Jun 21st 2018, 11:27 unclezoot afternoon, has anyone had any dealings with ->matching and processing the _matchingData array? ive created my own custom find expressions which uses ->matching, just trying to work out the correct place to process the result set afterwards. I'm doing it in the controller which smells wrong
# Jun 21st 2018, 11:23 neon1024 There is a lot more to it than I thought
# Jun 21st 2018, 11:23 neon1024 I’m rather enjoying Javascript
# Jun 21st 2018, 11:22 neon1024 I’ll also validate it in PHP anyway before I try and send the email, but wanted some immediate feedback for users.
# Jun 21st 2018, 11:19 neon1024 @admad Of course, yes, email type. Good point. Thanks!
# Jun 21st 2018, 11:18 admad @neon1024 i wouldn't spend the effort to validate emails on client side, just use `email` input type
# Jun 21st 2018, 11:17 neon1024 I guess when the UK leave the EU, we won’t need to validate for non-latin :,)
# Jun 21st 2018, 11:17 neon1024 Is there a comparable token in the Javascript regex engine?
# Jun 21st 2018, 11:02 lorenzo yes, they are valid
# Jun 21st 2018, 10:54 neon1024 Instead of `\w`
# Jun 21st 2018, 10:54 neon1024 As I notice the CakePHP validation uses `\p{L}`
# Jun 21st 2018, 10:46 neon1024 `大卫@example.com`
# Jun 21st 2018, 10:46 neon1024 As a made up example `ديفيد@example.com`
# Jun 21st 2018, 10:46 neon1024 Are email addresses with non-latin characters valid?
# Jun 21st 2018, 10:41 neon1024 :thumbsup:
# Jun 21st 2018, 10:40 qq cool! thanks. i ganna try it now. thanks for help!
# Jun 21st 2018, 10:39 qq correct.
# Jun 21st 2018, 10:39 neon1024 The sending of files just requires sending a different type of response, https://book.cakephp.org/3.0/en/controllers/request-response.html#sending-files
# Jun 21st 2018, 10:38 neon1024 Well you want to store your files outside of your `/webroot` folder, so they’re not accessible from the web server
# Jun 21st 2018, 10:38 qq @neon1024 where should i store files? how to do the redirect when downloading? I have built a CMS with authentication already. (/admin)
# Jun 21st 2018, 10:35 neon1024 @qq You would serve your files from a controller. Which would allow you to check the auth first
# Jun 21st 2018, 10:32 qq Hi guys, how to downlaod files with authentication? for example, users only can download files after login.
# Jun 21st 2018, 10:04 neon1024 Vue.js + CakePHP <3
# Jun 21st 2018, 09:17 lorenzo @birdy247 that would be my preference, yes
# Jun 21st 2018, 09:10 neon1024 Wasn’t sure on the correct pronoun, my apologies :slightly_smiling_face:
# Jun 21st 2018, 09:09 neon1024 Another coffee then!
# Jun 21st 2018, 09:09 neon1024 Ahok
# Jun 21st 2018, 09:08 neothermic She's not
# Jun 21st 2018, 09:08 neon1024 He’s alive!
# Jun 21st 2018, 09:08 neothermic @neon1024 Mrrrrr
# Jun 21st 2018, 08:50 birdy247 model->model2...
# Jun 21st 2018, 08:50 birdy247 so I should do as above?
# Jun 21st 2018, 08:50 lorenzo in a table is not terrible, just weird, since it already has the notion of associations
# Jun 21st 2018, 08:49 lorenzo in a behavior it is o to use `loadModel()`
# Jun 21st 2018, 08:49 birdy247 I use TableRegistry
# Jun 21st 2018, 08:49 birdy247 but if I am using a behaviour for example
# Jun 21st 2018, 08:49 birdy247 thats how I currently do it
# Jun 21st 2018, 08:48 birdy247 like $this->model->model2->model3
# Jun 21st 2018, 08:48 lorenzo are you loading thing that are not associations?
# Jun 21st 2018, 08:48 lorenzo inside a table you should probably use associations
# Jun 21st 2018, 08:48 birdy247 @lorenzo and this is ok to d inside another Table?