Log message #4200832

# At Username Text
# Sep 1st 2019, 12:34 dereuromark try it
# Sep 1st 2019, 12:34 vjnvisakh if I download 2.9 and just shift my controllers, views and models will they work fine?
# Sep 1st 2019, 12:33 vjnvisakh true ... company is a little scared of moving to new tech
# Sep 1st 2019, 12:33 dereuromark in fact - by now you should already be on 2.9 or higher for months now, including php7.1/7.2.
# Sep 1st 2019, 12:32 dereuromark not hard at all.
# Sep 1st 2019, 12:31 vjnvisakh am using cake 2.6 and want to badly use php 7.x ... how hard is it to migrate to 2.8 or higher?
# Sep 1st 2019, 08:52 admad @ruslangr select any decent folder name which represents the type of class
# Sep 1st 2019, 08:31 challgren I think `src/Libs/` would be the best spot
# Sep 1st 2019, 07:50 ruslangr Hello. CakePHP 2.x has \Lib folder for My classes, where best place for my classes in 3.x ? As I understand "vendor" is better tu use for composer libs.
# Sep 1st 2019, 04:44 admad lasent: why not set the default in db itself?
# Sep 1st 2019, 00:35 lastent How can I set a default value for a table field? Do I have to do it in the beforeSave?
# Aug 31st 2019, 16:48 January04 Found the answer, I just need to use default instead of value...
# Aug 31st 2019, 16:42 January04 My input is rendered as: <input type="text" name="culturas[0][valido]" id="cultura-0-valido"> but the ID of this entity is not 0. I think this is the problem... the ID of the entity is "1|1" and I can't use it because of the convention in the PHP that breaks this ID with pipe in other levels of array.
# Aug 31st 2019, 16:38 January04 but... I don't know how the form helper get the correct value inside the foreach...
# Aug 31st 2019, 16:10 ndm Maybe your form isn't created properly (for example not passing in the entity), or the path doesn't match the data (for many entities it would usually start with a numeric index).
# Aug 31st 2019, 16:04 January04 his: <?= $this->Form->control('culturas.'.$i.'.valido') ?> and this input is not being populated with the old value. How can I populate this input?
# Aug 31st 2019, 16:04 January04 Hey guys, I'm creating a form to update many entities.. I already have this entities in a variable $culturas... but in the next screen I'm creating the form using a foreach. But I can't use the id in the table to specify the position, so I created a variable $i in the start ot the foreach and I increment it each loop... and my form helper is like t
# Aug 31st 2019, 15:09 rchavik hello
# Aug 31st 2019, 14:18 dereuromark someone wants to do some bounty-coding? https://github.com/dereuromark/cakephp-ide-helper/issues/139 how about 30 euro via paypal for the completion? I wanna enjoy some sunshine/vacation this weekend :slightly_smiling_face: otherwise I will be coding-addictive again^^
# Aug 31st 2019, 10:19 COOurb thnx
# Aug 31st 2019, 10:15 challgren None that I can think of really
# Aug 31st 2019, 10:15 dereuromark I wonder of virtual ones should always be property-read - what cases do you allow writing here?
# Aug 31st 2019, 10:14 dereuromark they kind of are, as writing to them would never recover the content :slightly_smiling_face: since it hits the mutator which can return totally different things
# Aug 31st 2019, 10:14 challgren Wait can you even make properties read-only or is it just an annotation?
# Aug 31st 2019, 10:12 dereuromark First time I see people wanting to use property-read readonly tags ( https://github.com/dereuromark/cakephp-ide-helper/pull/141 ) for entity props.
# Aug 31st 2019, 09:58 challgren https://github.com/friendsofcake/awesome-cakephp#files
# Aug 31st 2019, 09:58 challgren @COOurb https://github.com/friendsofcake/awesome-cakephp
# Aug 31st 2019, 09:53 COOurb guys, I wanna use files(images) as part of entity. Is there any plugin for patching entity with "uploaded files" or have I write setter/getter for this case?
# Aug 31st 2019, 09:47 mrfeedback how can I duplicate an entry without mapping each field by hand? i tried ``` $collection = $this->find(); $n_collection = new Collection; $n_collection = $collection; $n_collection->id=null; ``` but it always get updated instead of creating a new one
# Aug 31st 2019, 03:19 risingitde but it works fine with just one
# Aug 31st 2019, 03:19 risingitde When I attempt to upload an image and audio in two seperate upload fields, with the Upload.Upload['audio','album_art] bit I get CSRF token mismatch.
# Aug 31st 2019, 03:04 risingitde Uploaded file: https://uploads.kiwiirc.com/files/0bf3b331f3a91e5a99b256ff3dd6d426/image.png
# Aug 31st 2019, 03:04 risingitde if i only list one feild in the plugin array in my Model, it works for one feild or the other, but if I try to add both feilds it throws the error
# Aug 31st 2019, 02:48 risingitde What might be the issue?
# Aug 31st 2019, 02:48 risingitde Uploaded file: https://uploads.kiwiirc.com/files/ab4a5e221e53639509b46c98c9a2effe/image.png
# Aug 31st 2019, 02:48 risingitde when I submit I get this error
# Aug 31st 2019, 02:47 risingitde http://josediazgonzalez.com/2015/12/05/uploading-files-and-images/
# Aug 31st 2019, 02:47 risingitde I'm using this upload plugin
# Aug 31st 2019, 02:47 risingitde This is my form for my Tracks add page
# Aug 31st 2019, 02:47 risingitde Uploaded file: https://uploads.kiwiirc.com/files/30e2b24376d86826492dcff8503740a6/image.png
# Aug 30th 2019, 23:41 entry_lvl_dev thanks dereuromark