Log message #4032390

# At Username Text
# May 25th 2017, 18:45 jeremyharris yeah, that’s what saveMany does anyway. wrap it in a transaction and you should be good
# May 25th 2017, 18:44 atomCode I guess the only way is to iterate through each record and do a saveAssociated
# May 25th 2017, 18:39 jeremyharris hm maybe not sorry. been a long time
# May 25th 2017, 18:37 jeremyharris I think comment would go under the Article key?
# May 25th 2017, 18:36 atomCode I've looked a the docs and that data structure doesn't seem to be supported with a saveMany nor a saveAll call
# May 25th 2017, 18:35 atomCode Is it not possible to saveMany data of a model along with many associated Model data on Cake 2.x like this https://gist.github.com/atomCode/f7d0163aaf8b439d7413244f5ed6caf5#file-gistfile1-txt ?
# May 25th 2017, 18:26 temp1029 :-)
# May 25th 2017, 18:26 jeremyharris :+1:
# May 25th 2017, 18:26 temp1029 Sorry, jarard*
# May 25th 2017, 18:26 jarard got it thanks
# May 25th 2017, 18:26 jarard opps yes of course
# May 25th 2017, 18:25 jarard jeremyharris, sorry I meant digits and letters
# May 25th 2017, 18:25 jeremyharris jarard see: https://regex101.com/r/GJqbbK/1/
# May 25th 2017, 18:25 temp1029 Jarad, you need to use ^ at the beginning of your regex and $ at the end, to indicate you want an exact match for the entire string
# May 25th 2017, 18:25 jeremyharris jarard looks to me that you’re allowing A-Z a-z as well
# May 25th 2017, 18:24 jarard anyone able to tell me why this regex is matching when I am only allows digits and numbers: http://sandbox.onlinephpfunctions.com/code/2b73ea3ee91cc47a8cbb851abafeade53e87cea6
# May 25th 2017, 18:23 spriz could i be the only one wishing to use bootstrap alerts with crud-view? :P :P
# May 25th 2017, 18:23 spriz doing what is suggested here seems to be the culprit: http://crud.readthedocs.io/en/latest/actions/add.html#crud-setflash :thinking_face:
# May 25th 2017, 18:21 spriz and that makes notice: array to string conversion here: https://github.com/FriendsOfCake/crud-view/blob/master/src/Template/Element/action-button.ctp#L12 :thinking_face:
# May 25th 2017, 18:20 chris-andre I have solved an issue I had on production server; when updating a record I got 403 Forbidden. By adding `'type' => 'post'` in `$this->Form->create($entity, ['type' => 'post'])` that was solved, but does someone have an explanation why it is like that?
# May 25th 2017, 18:20 spriz at this point there's the action's config in the $config variable: https://github.com/FriendsOfCake/crud-view/blob/master/src/Template/Element/actions.ctp#L59 :thinking_face:
# May 25th 2017, 18:20 spriz anyone know why my Crud action config goes all the way to crud-view views? :thinking_face:
# May 25th 2017, 18:10 jeremyharris make sure to install debug kit, makes finding these errors easier :slightly_smiling_face: you can inspect all vars passed to the template, for example
# May 25th 2017, 18:09 cake-novice $this->set(compact('forms')) its there
# May 25th 2017, 18:08 jeremyharris based on your OP
# May 25th 2017, 18:08 jeremyharris ok, perhaps because you set ‘form’ not ‘forms’?
# May 25th 2017, 18:07 cake-novice if (isset($forms) andand !empty($forms)) is my check and i want to show different view if result is empty
# May 25th 2017, 18:07 cake-novice yes i did and also checked...
# May 25th 2017, 18:06 jeremyharris depends on what your definition of empty is in this case
# May 25th 2017, 18:06 jeremyharris now, that’s different from “empty”
# May 25th 2017, 18:05 jeremyharris cake-novice use `isset()` to see if the variable was set on the view
# May 25th 2017, 18:04 cake-novice Hi, after this in controller $this->set(compact('form')); how we can check in view template that $forms is empty or not?
# May 25th 2017, 17:43 deco jeremyharris, thanks.
# May 25th 2017, 17:43 jeremyharris e.g. `$this->Tasks->load('TaskName'. ['var' => true]);`
# May 25th 2017, 17:42 jeremyharris deco I would recommend passing required variables to the task, rather than the other way around (as the task might be used by other shells which may or may not have that variable)
# May 25th 2017, 17:39 deco Hi guys! How can I access a Shell variable from a Task?
# May 25th 2017, 17:36 steinkel bin your controller, I'll take a look
# May 25th 2017, 17:07 igreat Can't even access the plugin registration page
# May 25th 2017, 17:04 igreat @steinkel I still encounter the, even after allowing the register action in beforeFilter
# May 25th 2017, 17:03 megan Hey guys :slightly_smiling_face: who's up for joining the stream? $99 for two days of training, and you can send your questions through via slack/email and we will pass it on https://twitter.com/cakephp/status/867642289669251072
# May 25th 2017, 16:44 gustavocp i read more here and i understand