Log message #4104505

# At Username Text
# Dec 18th 2017, 14:40 neon1024 Similar nomenclature issues exist around Model, Table class and database table
# Dec 18th 2017, 14:37 rafael.junqueira.sant Good job, admad. One step closer to perfection.
# Dec 18th 2017, 14:37 admad yeah earlier the term "view" was used for view class as well as ctp files which is why the latter was changed to "template" in 3.x. But still echoing `<?=` makes is obvious where the render() call needs to be done :slightly_smiling_face:
# Dec 18th 2017, 14:34 rafael.junqueira.sant "// In your View: Will use great_success.ctp instead of succcess.ctp <?= $this->Flash->render('flash', [ 'element' => 'great_success' ]);" "In your View" that's what confused me the most, I wouldn't think we would call "templates" and "views" with the same name, since cakephp have different folders and different uses.
# Dec 18th 2017, 14:33 admad i already submitted an improvement to the docs https://github.com/cakephp/docs/pull/5482 But feel free to submit additional improvement later if you want.
# Dec 18th 2017, 14:31 rafael.junqueira.sant @admad I get it. I understand also why it was so confusing to me. I'll make a PR to the documentation later. Thank you for your help. I'll try this you told me to do and confirm the results.
# Dec 18th 2017, 14:15 admad @rafael.junqueira.sant I already told you DON'T include the flash element directly. And you are supposed to use the helper in your template file, not AppView. So replace `<?= $this->element('Flash/success'); ?>` with `$this->Flash->render()` and get rid of the `$this->Flash->render()` call you have in `AppView::initialize()`.
# Dec 18th 2017, 13:54 birdy247 but I havent created a specific model for this. instead I pass the query object and set a scope
# Dec 18th 2017, 13:53 birdy247 It talks about models in the Pagintor helper
# Dec 18th 2017, 13:51 birdy247 File uploaded https://cakesf.slack.com/files/U0T295QA3/F8FGUHAAU/-.php / https://slack-files.com/T053DPNCM-F8FGUHAAU-364463fc32
# Dec 18th 2017, 13:50 dereuromark not sure if all of that is already supported. I would rather use ajax probably
# Dec 18th 2017, 13:47 birdy247 but no success
# Dec 18th 2017, 13:46 birdy247 following the dcos
# Dec 18th 2017, 13:46 birdy247 I am trying to use multiple paginations on the same page
# Dec 18th 2017, 13:41 dereuromark I just use sessiona and dont mock too much here :slightly_smiling_face: usually more future proof, more realistic and easier on top
# Dec 18th 2017, 13:31 quantum-x Hey all. Working w/ tests on Cake 2.X. My Controller tests require Authentication, so I've mocked the Auth component. However, they're failing due as $this->Auth->allow() doesn't have the function listed, and obviously we've only stubbed the auth method. Any hints on how to get around this would be most appreciated. Gist is here: https://gist.github.com/quantum-x/a5df7705827cd7bae0c3ba335d5aa267
# Dec 18th 2017, 13:23 josexato any Idea
# Dec 18th 2017, 13:22 josexato I am not sure where to look, I've found some post talking to a debug limit, but I am not debugging anything
# Dec 18th 2017, 13:22 josexato https://pastebin.com/NsG5h1JF
# Dec 18th 2017, 13:21 josexato Good morning! One question I've implemented an autocomplete file successfully but I have this error when the response for the xhr has many results "maximum depth reached"
# Dec 18th 2017, 13:13 patsuckow Hello everybody! Tell me how to transfer from the form, by the get method, to the variable in url /products/search/. To get the result: /products/search/search+string ?
# Dec 18th 2017, 12:43 dariolap Hi all, in 3.5 version, ajax ctp template are not localized in template/ajax but only in template. How can I keep them in the old path?
# Dec 18th 2017, 12:31 neon1024 Yes, seems it is, or the docblock claims that it is ;)
# Dec 18th 2017, 12:29 neon1024 Anyone know if the CakePHP UUID is compliant with RFC4122
# Dec 18th 2017, 12:15 neon1024 You add your provider to the Validator with a key and then use that key
# Dec 18th 2017, 12:14 neon1024 https://book.cakephp.org/3.0/en/core-libraries/validation.html#adding-validation-providers
# Dec 18th 2017, 11:49 joop 'provider'=>'..........' ?
# Dec 18th 2017, 11:49 joop how should i call it in a model
# Dec 18th 2017, 11:48 joop if i placed my costume validation rule to src\ORM\Rule directory
# Dec 18th 2017, 11:48 makallio85 it has its downsides, but certainly some benefits also.
# Dec 18th 2017, 11:48 rafael.junqueira.sant @admad Here are all the steps I took: https://pastebin.com/8v7wC81X Is there any other information I can provide? Was it intended to function with the steps I took?
# Dec 18th 2017, 11:48 makallio85 No. Like I said, it is too much to do for now. And I dont not sign, that it is bad design.
# Dec 18th 2017, 11:46 hmic so the reationale for keeping bad design is that you did it already
# Dec 18th 2017, 11:46 makallio85 or did you mean clustering, not sure
# Dec 18th 2017, 11:45 hmic *lol*
# Dec 18th 2017, 11:45 makallio85 Yes i have read abóut it, but it is not the possibility here as it would be too much to refactor now.
# Dec 18th 2017, 11:45 makallio85 But how do i set it back to connectionregistry with connectionmanager
# Dec 18th 2017, 11:44 hmic and yes, you can change the tablename in a table object, sure. Table::setTable() does
# Dec 18th 2017, 11:43 hmic you do know that mysql can handle the shards itself, yes you do
# Dec 18th 2017, 11:43 makallio85 My first question was, wouldnt it be reasonable to allow table to be switched in connection object somehow without creating new connection object
# Dec 18th 2017, 11:42 makallio85 and I need to switch table name in that connection