# |
Jan 22nd 2020, 15:45 |
crayfishuk |
Rector? |
# |
Jan 22nd 2020, 15:44 |
ricksaccous |
so you have a series of upgrade scripts that an help |
# |
Jan 22nd 2020, 15:44 |
ricksaccous |
there's also an upgrade script though that dereuromark created |
# |
Jan 22nd 2020, 15:44 |
ricksaccous |
not sure if rector handles that |
# |
Jan 22nd 2020, 15:44 |
ricksaccous |
that might be easier since you have rector |
# |
Jan 22nd 2020, 15:43 |
crayfishuk |
@ndm Does that go for a 2.10 to 3.x migration too? |
# |
Jan 22nd 2020, 15:10 |
kiwi_92 |
Indeed. That's what our plan is for this year. We were considering Laravel, but I have always liked Cake and hoped upgrading might be faster. |
# |
Jan 22nd 2020, 15:08 |
spriz |
Rather migrate it while it works and no huge security holes has been found ;P |
# |
Jan 22nd 2020, 15:08 |
kiwi_92 |
Thank you |
# |
Jan 22nd 2020, 15:08 |
kiwi_92 |
It still works well but obviously very outdated. |
# |
Jan 22nd 2020, 15:07 |
kiwi_92 |
Haha, that's what I feared. The app has several years of development in it. Not a small job. :D |
# |
Jan 22nd 2020, 15:07 |
spriz |
@ndm Ideally I think a method where with the signature of `($field, $maxDigits, $maxDecimals)` would make sense :D |
# |
Jan 22nd 2020, 15:06 |
ndm |
@kiwi_92 Rewrite the application from scratch |
# |
Jan 22nd 2020, 15:06 |
ndm |
@spriz There's the `decimal` rule... and `lessThanOrEqual` seems fine, doesn't it? |
# |
Jan 22nd 2020, 15:03 |
kiwi_92 |
I have a Cake 1.3 application. If I want to upgrade it to Cake 4.0, what's the recommended route? Upgrade to 2.x, then 3.x, then 4.x? |
# |
Jan 22nd 2020, 14:52 |
spriz |
Also any more sneaky way to ensure it stays witin range than `->lessThanOrEqual('price', 999999999.999)` ? |
# |
Jan 22nd 2020, 14:52 |
spriz |
Any sneaky way to make sure only values with 3 decimals are put into an entity? (eg. DECIMAL(12,3) ) |
# |
Jan 22nd 2020, 13:26 |
matt |
Hi, is there a way to concat breadcrumb globally |
# |
Jan 22nd 2020, 11:52 |
thomas078 |
Thanks! This is exactly what i need |
# |
Jan 22nd 2020, 11:51 |
jotpe |
Hey |
# |
Jan 22nd 2020, 09:58 |
neon1024 |
Ahoy! |
# |
Jan 22nd 2020, 09:26 |
challgren |
Evening all |
# |
Jan 22nd 2020, 08:54 |
alexdd55976 |
morning |
# |
Jan 22nd 2020, 08:03 |
tobse |
@thomas078 I am using https://phpdocker.io/generator to build my docker-containers with nginx and I have no Header "nosniff" |
# |
Jan 22nd 2020, 07:58 |
neon1024 |
iquana I think people have used this one in the past https://github.com/alt3/cakebox |
# |
Jan 22nd 2020, 07:06 |
javier.villanueva |
If I have a "belongsTo" association (A belongsTo B) with "select strategy"... Can I get specific fields of B in a find of A? |
# |
Jan 22nd 2020, 07:03 |
thomas078 |
any help much appreciated |
# |
Jan 22nd 2020, 07:02 |
thomas078 |
i think that this adds nosniff |
# |
Jan 22nd 2020, 07:02 |
thomas078 |
trying to run cake on https://hub.docker.com/r/wyveo/nginx-php-fpm |
# |
Jan 22nd 2020, 06:54 |
thomas078 |
good. so it must be then my nginx |
# |
Jan 22nd 2020, 06:52 |
admad |
cake doesn't add any such header |
# |
Jan 22nd 2020, 06:51 |
thomas078 |
one problem i have now is that i get X-Content-Type-Options: nosniff. Not sure if it is added by cakephp or nginx |
# |
Jan 22nd 2020, 06:51 |
javier.villanueva |
morning all |
# |
Jan 22nd 2020, 06:46 |
thomas078 |
nginx |
# |
Jan 22nd 2020, 06:46 |
thomas078 |
trying to find proper docker php-fpm container to run my cakephp 3 app. Any suggestions |
# |
Jan 22nd 2020, 01:26 |
luizcmarin |
@challgren "doesnt seem like a file upload plugin" ... I better go to sleep ... |
# |
Jan 22nd 2020, 00:48 |
challgren |
https://github.com/josbeir/cakephp-filesystem is the only CakePHP 4 plugin for file uploading right now. https://github.com/friendsofcake/awesome-cakephp#files |
# |
Jan 22nd 2020, 00:47 |
challgren |
laminas/laminas-diactoros doesnt seem like a file upload plugin |
# |
Jan 22nd 2020, 00:44 |
luizcmarin |
I need to attach images to the register. Any information on how to use "laminas/laminas-diactoros" to do this in cake4? I have a varchar field (255). |
# |
Jan 21st 2020, 18:33 |
ricksaccous |
awesome |
# |
Jan 21st 2020, 18:31 |
jotpe |
@ricksaccous This works: `<?= $this->Form->control('items', ['multiple' => 'checkbox', 'options' => $optionalItems, '*value*' => $selected]) ?>` |