Log message #4218526

# At Username Text
# Dec 13th 2019, 08:58 k4t Hi
# Dec 13th 2019, 08:54 yadav.manu36 I am not getting proper solution and also CakePHP Book Doc is not clear https://book.cakephp.org/3/en/controllers/request-response.html#cookies
# Dec 13th 2019, 08:52 yadav.manu36 @conehead @challgren my problem is same as below https://stackoverflow.com/questions/50858021/cakephp3-cookie-value-not-being-kept
# Dec 13th 2019, 08:15 javier.villanueva morning all
# Dec 13th 2019, 07:40 challgren Have you checked to see if the request actually has the cookie, using postman or chrome inspector
# Dec 13th 2019, 07:21 conehead Maybe it IS null
# Dec 13th 2019, 07:21 conehead Probably it is just not set anymore
# Dec 13th 2019, 07:20 conehead Seems like there is the problem
# Dec 13th 2019, 07:20 yadav.manu36 No idea :)
# Dec 13th 2019, 07:19 conehead how?
# Dec 13th 2019, 07:19 yadav.manu36 @conehead yes
# Dec 13th 2019, 07:15 conehead How does the cookie look like when ```$this->request->getCookie('referralCode');``` returns NULL?
# Dec 13th 2019, 06:48 slackebot ->withHttpOnly(true); $cookies = $cookies->add($cookie); $this->response = $this->response->withCookie($cookie); } And after some time i come on this page again and get cookie but getting NULL $referralCode = $this->request->getCookie('referralCode'); Please help me
# Dec 13th 2019, 06:48 yadav.manu36 I am post this issue again, can anyone help me. I have created cookie on signup page like below: if($this->request->getQuery('referral') andand !$cookies->has('referralCode')){ $cookie = (new \Cake\Http\Cookie\Cookie('referralCode')) ->withValue($this->request->getQuery('referral')) ->withExpiry(new \DateTime('+1 year')) ->withPath('/') ->withSecure(false)
# Dec 13th 2019, 06:04 kgb.acct.personal Is it not recommended to use Configure class in view?
# Dec 12th 2019, 22:49 sdevore So one can always build a local version of the docs for offline use… I’ve done it in the past with the docker images https://github.com/cakephp/docs#build-the-documentation-with-docker
# Dec 12th 2019, 22:41 savant can only vouch for the rest of the subsites :)
# Dec 12th 2019, 22:41 savant Yeah I dont really have access to either :)
# Dec 12th 2019, 22:39 challgren Ahh ok, yeah not a very pleasant experience with my.cakephp.org and cakefest.org
# Dec 12th 2019, 22:38 savant @challgren I’ll get that fixed up - that site isn’t managed by me so I cant do much about it, but we’ll get it fixed regardless :)
# Dec 12th 2019, 22:38 savant @luizcmarin?
# Dec 12th 2019, 22:37 luizcmarin whole family together ... good time to rethink the manual .... :face_with_rolling_eyes:
# Dec 12th 2019, 22:35 challgren Yep one of the 3 links on my.cakephp.org/user/username
# Dec 12th 2019, 22:34 savant is that a website linked from somewhere?
# Dec 12th 2019, 22:32 challgren http://community.cakephp.org/ is coming back name not resolved
# Dec 12th 2019, 22:31 savant sites should be coming back online, im checking each one one-by-one
# Dec 12th 2019, 22:23 savant GhostPHP
# Dec 12th 2019, 22:23 savant I did not
# Dec 12th 2019, 22:23 challgren He probably posted that tweet :P
# Dec 12th 2019, 22:23 savant :)
# Dec 12th 2019, 22:23 savant I am the team!
# Dec 12th 2019, 17:05 noel Ah never mind... was `edit(event)` instead of `edit(this)`
# Dec 12th 2019, 17:03 noel The above sort of works, but it doesn't pass the event in.
# Dec 12th 2019, 17:02 noel E.g. `<?= $this->Html->link('<q-icon name="edit" />', ['action' => 'edit', $enquiry->id], ['escape' => false, 'onclick' => 'edit(this)']) ?>` ```<script> function edit(event) { console.log('edit'); console.log(event); event.stopPropagation(); window.top.location.href = "http://localhost:8080/#/enquiry"; } </script>```
# Dec 12th 2019, 17:02 noel Is there a way that I can reference a javascript function defined in my template in the `onclick` value of an HTML link generated by Cake? (The docs don't show such an example).
# Dec 12th 2019, 16:01 ricksaccous good call that's prob it
# Dec 12th 2019, 16:00 ricksaccous it was looking for the setTemplate widget XD
# Dec 12th 2019, 16:00 neothermic which is why the errors didn't make sense!
# Dec 12th 2019, 16:00 ricksaccous lol
# Dec 12th 2019, 16:00 neothermic I ponder if the call function of formhelper tried to make a setTemplate input
# Dec 12th 2019, 15:59 neothermic ooh!