Log message #4104537

# At Username Text
# Dec 18th 2017, 16:33 rafael.junqueira.sant @admad :clap: working as expected now. Lets have a beer sometime.
# Dec 18th 2017, 16:08 birdy247 I get an unknown command
# Dec 18th 2017, 16:08 birdy247 @bravo-kernel has the cakebox command been removed from cakebox
# Dec 18th 2017, 16:02 birdy247 yea, we are working in middleware before the router is fired
# Dec 18th 2017, 16:02 hmic birdy247: about anywhere, as long as its executed before fired. bootstrap.php is a rather save place ;-)
# Dec 18th 2017, 15:53 em. to answer my own question. Setting ‘quoteIdentifiers’ to true on test-connection fixed it for now…
# Dec 18th 2017, 15:53 birdy247 hmic and that would need to be in bootstrap?
# Dec 18th 2017, 15:41 hmic yes
# Dec 18th 2017, 15:40 birdy247 hmic like this ? \Cake\Event\EventManager::instance()->on(...);
# Dec 18th 2017, 15:40 em. Hello! Is “key” a reserved keyword? My fixture fails because of a db-field named “key”: “Unable to insert fixture… Syntax error or access violation: 1064 You have an error in your SQL syntax”
# Dec 18th 2017, 15:38 hmic and make sure the event got registered before you want to trigger it!
# Dec 18th 2017, 15:38 hmic matt: to which eventmanager is the eventlistener connected? - needs to be the global one
# Dec 18th 2017, 15:36 matt Is it possible to trigger an event outside of a table, view or controller please? I tried to use the EventDispatcherTrait but the listener doesn't seem to pick up the event
# Dec 18th 2017, 15:33 danishkhan3621 thanks @hmic (IRC)
# Dec 18th 2017, 15:29 hmic if you want to change it, just unlock the hidden field(s)
# Dec 18th 2017, 15:29 hmic danishkhan3621: if you dont change the value hidden is fine
# Dec 18th 2017, 15:21 danishkhan3621 @hmic (IRC): without hidden it is working is there any other way to use hidden fields or some other concepts in cakephp 3
# Dec 18th 2017, 15:20 hmic and you are not about to change it, like the message says. try without hidden to verify
# 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