Log message #4218206

# At Username Text
# Dec 11th 2019, 06:32 conehead "shows error" is not really helpful. Try `$this->getRequest->getData()` instead
# Dec 11th 2019, 06:12 md.islam11 I just written as shortcut
# Dec 11th 2019, 06:12 md.islam11 it is
# Dec 11th 2019, 06:12 md.islam11 $this->request->getData('name')
# Dec 11th 2019, 06:11 md.islam11 thats it.
# Dec 11th 2019, 06:11 md.islam11 shows error
# Dec 11th 2019, 06:11 md.islam11 that has isset(requet-get('aa'))
# Dec 11th 2019, 06:11 md.islam11 all the legacy code
# Dec 11th 2019, 06:11 niel45 or is the error just because of the missing $ for $this
# Dec 11th 2019, 06:11 md.islam11 I am upgrading my cakephp to 3.8
# Dec 11th 2019, 06:10 niel45 although it really depends on what you're trying to do. if you're checking for a value in order to set a sane default I'd use null coallescing: $value = $this->request->getData('a') ?? '';
# Dec 11th 2019, 06:08 niel45 $dummy = this->request->getData('a'); isset($dummy);
# Dec 11th 2019, 06:03 md.islam11 ?
# Dec 11th 2019, 06:03 md.islam11 isset(this->request->getData('a')) shows error . What is the solution.
# Dec 10th 2019, 22:59 ricksaccous well i'm off, enjoy your day
# Dec 10th 2019, 22:59 ricksaccous lol 13337
# Dec 10th 2019, 22:52 challgren Ahh I have it on as bg noise when Im coding
# Dec 10th 2019, 22:49 ricksaccous i'm a harsh critic though
# Dec 10th 2019, 22:49 ricksaccous heh, i stopped watching season 3 i think, it was too cheesy at that point
# Dec 10th 2019, 22:48 challgren @ricksaccous watch Mr Robot all the episodes this season are titled in the 4xx series
# Dec 10th 2019, 22:47 challgren This is my template. Pretty simple form honestly.
# Dec 10th 2019, 22:46 ricksaccous very proper
# Dec 10th 2019, 22:46 ricksaccous oh cool
# Dec 10th 2019, 22:46 challgren 404 is not found
# Dec 10th 2019, 22:46 challgren bad request
# Dec 10th 2019, 22:46 ricksaccous i forget what that status code means but isn't that a page not found
# Dec 10th 2019, 22:46 ricksaccous do you really want to 400 on form error? lol
# Dec 10th 2019, 22:45 challgren @damiano this is an example how to do get/post edits,
# Dec 10th 2019, 22:44 ricksaccous haha, no problem
# Dec 10th 2019, 22:44 ricksaccous but i'm headed off soon so i must simply say good luck
# Dec 10th 2019, 22:44 damiano thanks!
# Dec 10th 2019, 22:44 damiano valueSources works perfectly! wow
# Dec 10th 2019, 22:44 ricksaccous honestly it's a bit hard to imagine your implementation
# Dec 10th 2019, 22:44 ricksaccous ok
# Dec 10th 2019, 22:44 damiano @ricksaccous i am using the GET for this reason, i basically submit the form on the same page
# Dec 10th 2019, 22:43 ricksaccous are you redirecting after submission?
# Dec 10th 2019, 22:43 ricksaccous if there are no errors and the form submitted, why would you still see anything
# Dec 10th 2019, 22:43 damiano @ricksaccous what do you mean?
# Dec 10th 2019, 22:42 damiano i try this
# Dec 10th 2019, 22:42 damiano ```'valueSources' => ['query', 'context']```
# Dec 10th 2019, 22:42 ricksaccous it depends how you are handling the submission