# |
Jun 27th 2017, 14:17 |
jeremyharris |
debug vs pj :fire: |
# |
Jun 27th 2017, 14:17 |
jeremyharris |
yeah, debug($entity) and paste that :slightly_smiling_face: |
# |
Jun 27th 2017, 14:17 |
gutts_ |
oh, sec |
# |
Jun 27th 2017, 14:17 |
hmic |
pj(newEntity(['name'=> 'very long string...'])); |
# |
Jun 27th 2017, 14:17 |
jeremyharris |
sorry, just paste the actual entity (what you get back after newEntity or patchEntity depending on what you’re doing) to gist.github.com |
# |
Jun 27th 2017, 14:16 |
gutts_ |
what do you mean exactly? a ddl of the table and the validation? |
# |
Jun 27th 2017, 14:15 |
jeremyharris |
can you gist your entity? |
# |
Jun 27th 2017, 14:14 |
gutts_ |
by 'not work' it doesnt throw anything back for invalid in my validator |
# |
Jun 27th 2017, 14:14 |
gutts_ |
why does ->maxLength('name', 255, 'Name may not exceed 255 characters in length.') not seem to work? i pasted in a 700 char string |
# |
Jun 27th 2017, 13:22 |
neon1024 |
property.0.field, property.1.field, etc |
# |
Jun 27th 2017, 13:21 |
neon1024 |
As long as the number is unique it shouldn’t cause the arrays to be overwritten |
# |
Jun 27th 2017, 13:21 |
neon1024 |
Mine doesn’t, and I’m using that technique in my code as I type this ;) |
# |
Jun 27th 2017, 13:16 |
NobbyNobbs |
there was an option of setting the fieldName to sth like 'images.' for cake 2.x, but 3 produces an error |
# |
Jun 27th 2017, 13:16 |
NobbyNobbs |
I, at least, can't find a way to configure the form - securityhelper combo to work for multifile upload. |
# |
Jun 27th 2017, 13:14 |
NobbyNobbs |
lat1no, you probably would be better off with ajax for multiple uploads |
# |
Jun 27th 2017, 13:05 |
neon1024 |
My plugin supports multi upload, but not with a drag and drop interface |
# |
Jun 27th 2017, 12:50 |
lat1no |
YES slackebot! I tried dropzone and it works. But how can it work with cake 3? I tried a lot of days... |
# |
Jun 27th 2017, 12:45 |
dakota |
lat1no, croogo is using http://www.dropzonejs.com/ to handle drag+drop uploading |
# |
Jun 27th 2017, 12:42 |
lat1no |
Thanks slackebot. I mean drag'ndrop multi upload ;-) |
# |
Jun 27th 2017, 12:28 |
louis |
You could probably use one of these plugins https://github.com/FriendsOfCake/awesome-cakephp#files |
# |
Jun 27th 2017, 12:25 |
lat1no |
thanks |
# |
Jun 27th 2017, 12:25 |
lat1no |
Hi there. Is there any known solution multi uploading files in cake 3 with html5 data? div id ... |
# |
Jun 27th 2017, 12:20 |
louis |
Ok i found it, sry for spaming |
# |
Jun 27th 2017, 12:16 |
slackebot |
SubscriptionsTable” is it possible ? |
# |
Jun 27th 2017, 12:16 |
louis |
Hi there, i’m trying to do something like this : ` $company = $this->Companies->get($id, [ ‘contain’ => [ ‘CompanyImages’, ‘Subscriptions.Plans’ => function ($q) { return $q->find(‘notFinish’); } ] ]); ` Obviously the ORM try to find custom finder in PlansTable but it’s implemented in SubscriptionsTable, how could i |
# |
Jun 27th 2017, 12:16 |
pidlo |
howto replace inputdefaULTS? |
# |
Jun 27th 2017, 12:15 |
pidlo |
The inputDefaults option has been removed from create.. |
# |
Jun 27th 2017, 11:46 |
pidlo |
is this reason ? https://stackoverflow.com/questions/29578825/which-approach-is-best-to-get-instance-of-a-table-in-cakephp-3-0 |
# |
Jun 27th 2017, 11:45 |
pidlo |
how can i replace table registrz inside model in cakephp 2 something like registrz init... |
# |
Jun 27th 2017, 11:44 |
pidlo |
https://gist.github.com/anonymous/357f25034aa4d6307d3d77dd7bb30b7d |
# |
Jun 27th 2017, 11:44 |
pidlo |
hello cakephp3 vs 2 :( |
# |
Jun 27th 2017, 11:04 |
elboletaire |
yeah yarn seems to be better in a majority of cases (I've found cases where it does not work as expected, specially installing global packages) |
# |
Jun 27th 2017, 10:59 |
dakota |
In our small reactjs based application yarn is around 4 times faster than npm to install |
# |
Jun 27th 2017, 10:59 |
neon1024 |
Seems interesting @dakota https://yarnpkg.com/lang/en/ |
# |
Jun 27th 2017, 10:44 |
cleptric |
I just need it during compling to css |
# |
Jun 27th 2017, 10:43 |
neon1024 |
Ah right, okay |
# |
Jun 27th 2017, 10:43 |
neon1024 |
Yes, seems it does. http://sass-lang.com/documentation/file.SASS_REFERENCE.html#import |
# |
Jun 27th 2017, 10:43 |
cleptric |
Which sucks :) |
# |
Jun 27th 2017, 10:43 |
cleptric |
Yes, I found import, but that copies the whole content to my app sass file |
# |
Jun 27th 2017, 10:43 |
neon1024 |
@cleptric No idea actually. You can certainly import partials and mixins easily. I’m just not sure if you can specify a path. |
# |
Jun 27th 2017, 10:42 |
cleptric |
@neon1024 regarding saas: `@import (reference) "../../vendors/bower_components/bootstrap/less/mixins.less";` Can you do sth like this? We’ll switch to saas when Bootstratp 4 comes out, so i just looked into less so far |