# |
Dec 18th 2017, 15:19 |
hmic |
danishkhan3621: the value goes into the same options array as the type IMHO |
# |
Dec 18th 2017, 15:12 |
danishkhan3621 |
Tampered field 'product_id' in POST data when i use hidden field for editing like echo $this->Form->input('product_id.', array('type'=>'hidden'),array('value'=>$product['product_id'])); |
# |
Dec 18th 2017, 14:56 |
rafael.junqueira.sant |
yes |
# |
Dec 18th 2017, 14:55 |
neon1024 |
It’s always good to see improvements in your code over time, it shows that you’re continuing to learn new things and evolve your skill set |
# |
Dec 18th 2017, 14:54 |
neon1024 |
Yep, when you save your code it becomes legacy. |
# |
Dec 18th 2017, 14:49 |
slackebot3 |
obvious because they followed all the way from the core to the extremities, but to the beginner, there is a great gap. But when we destroy our creation and create it again, with the new concepts and solutions we learned, it will generally take more time to have to recreate it. |
# |
Dec 18th 2017, 14:49 |
rafael.junqueira.sant |
As we grow, we learn more concepts, but the things we created, are based on the concepts we knew when we started creating them. That's why a cicle of creation and destruction is so necessary. When our creation evolves, little flaws become big flaws after some time, those who come next find it hard to understand things from the beginning, because most times when we fix a problem, we find a new one. And for the veterans, they are |
# |
Dec 18th 2017, 14:42 |
neon1024 |
Hopefully in 4.0 many of these things will be solved, as backwards compatibility will be less of a concern |
# |
Dec 18th 2017, 14:41 |
neon1024 |
As `loadModel()` returns a Table instance, making `TableRegistry::get()` a more descriptive api |
# |
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. |