# |
Jul 24th 2018, 10:06 |
neon1024 |
Just fiddly with migrations |
# |
Jul 24th 2018, 10:06 |
dereuromark |
postgres is shit from the case sensitivity perspective :slightly_smiling_face: |
# |
Jul 24th 2018, 10:06 |
lorenzo |
what’s the problem with foreign keys @neon1024? |
# |
Jul 24th 2018, 10:05 |
lorenzo |
the problem is that mysql does not let you rollback schema changes |
# |
Jul 24th 2018, 10:05 |
lorenzo |
use postgres, that’s a better experience |
# |
Jul 24th 2018, 09:36 |
neon1024 |
Which means that you get lots of failed and partially run migrations, and huge spaffs of error output |
# |
Jul 24th 2018, 09:36 |
neon1024 |
Using foreignKey constraints makes using Migrations super hard work and pretty furstrating |
# |
Jul 24th 2018, 09:34 |
neon1024 |
Why doesn’t the migrations plugin fail nicely? |
# |
Jul 24th 2018, 09:09 |
neon1024 |
Morning all |
# |
Jul 24th 2018, 08:49 |
saeideng |
and then `return $this->response ` |
# |
Jul 24th 2018, 08:49 |
saeideng |
`$this->response = $this->response->withHeader('.....')` |
# |
Jul 24th 2018, 08:48 |
saeideng |
`->withHeader(` |
# |
Jul 24th 2018, 08:47 |
scottmkroberts |
I just need a way to set a header before redirecting |
# |
Jul 24th 2018, 08:40 |
scottmkroberts |
I found the issue. I’m using Turbolinks so I need to pass a header along with the redirect for it to work. |
# |
Jul 24th 2018, 08:20 |
saeideng |
`redirect()` uses http header for redirecting |
# |
Jul 24th 2018, 08:19 |
saeideng |
I dont understand your mean |
# |
Jul 24th 2018, 08:18 |
saeideng |
`$this->redirect('target')` |
# |
Jul 24th 2018, 08:18 |
saeideng |
infact cake 4 is very similar to cake 3.6 and 3.7 , and migrate to cake 4 would be easy |
# |
Jul 24th 2018, 08:16 |
saeideng |
cake 3.6 and 4.0 is same except in methods type hints and a bit more |
# |
Jul 24th 2018, 08:15 |
saeideng |
but you can start with cake 3 |
# |
Jul 24th 2018, 08:15 |
scottmkroberts |
I assumed that $this->redirect would take you to a page and change the url to the page you are on. |
# |
Jul 24th 2018, 08:15 |
saeideng |
cakephp4xx: I think cake 4 will release before new year |
# |
Jul 24th 2018, 08:11 |
saeideng |
@scottmkroberts take an example |
# |
Jul 24th 2018, 08:08 |
scottmkroberts |
Surely redirect should change the url after it redirects? |
# |
Jul 24th 2018, 08:07 |
scottmkroberts |
Can anyone sanity check me please. |
# |
Jul 24th 2018, 07:07 |
admad |
cakephp4xx: cake 4 isn't ready yet even for early adopters. I suggest you start with latest 3.6. The upgrade path from last 3.x to 4 when the time comes won't be too difficult |
# |
Jul 24th 2018, 05:20 |
prasanna.venkat |
:+1: |
# |
Jul 24th 2018, 05:20 |
saeideng |
http://friendsofcake.com/crud/docs/ |
# |
Jul 24th 2018, 05:20 |
prasanna.venkat |
version 3 pls |
# |
Jul 24th 2018, 05:17 |
saeideng |
http://crud.readthedocs.io/en/latest/ |
# |
Jul 24th 2018, 05:13 |
prasanna.venkat |
hi did anyone know crud v3 docs linkl |
# |
Jul 24th 2018, 04:36 |
cakephp4xx |
but what if we start from scratch with cake 4 right now and after some development and testing on our side could we target that after 2-3 month from now cakephp 4 will be ready? |
# |
Jul 24th 2018, 04:35 |
cakephp4xx |
hello everybody, I'd like to ask a thing about CakePHP 4.0. We need to upgrade our web portal. Currently we have cakephp 2.10. But could we just start to user cakephp 4.0 already? We understand that it is on heavy development right now. |
# |
Jul 23rd 2018, 22:37 |
mdotobie |
Thank you for your guidance getting me on the right path |
# |
Jul 23rd 2018, 22:36 |
mdotobie |
Got it working @saeideng |
# |
Jul 23rd 2018, 22:19 |
saeideng |
after `composer dump-autoload ` |
# |
Jul 23rd 2018, 22:18 |
saeideng |
it should work |
# |
Jul 23rd 2018, 22:17 |
mdotobie |
Yes |
# |
Jul 23rd 2018, 22:17 |
saeideng |
and in this folder `plugins/cakephp-datadog/src/App/Services/DataDogService.php` |
# |
Jul 23rd 2018, 22:16 |
saeideng |
`namespace CakePHP_DataDog\App\Services\DataDogService` |
# |
Jul 23rd 2018, 22:16 |
saeideng |
your name space in plugin is |