# |
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 |
# |
Jul 23rd 2018, 22:14 |
mdotobie |
If do a use statement ‘CakePHP_DataDog\App\Services\DataDogService’ I get a class not found |
# |
Jul 23rd 2018, 22:13 |
mdotobie |
So for instance, I have a class called DataDogService within the plugin under the namespace /App/Services |
# |
Jul 23rd 2018, 22:13 |
saeideng |
https://book.cakephp.org/3.0/en/plugins.html#manually-autoloading-plugin-classes |
# |
Jul 23rd 2018, 22:12 |
mdotobie |
Because it’s not identifying the namespacing within the plugin |
# |
Jul 23rd 2018, 22:12 |
mdotobie |
That’s the part not working |
# |
Jul 23rd 2018, 22:12 |
saeideng |
you no need to `Plugin.php` in this plugin |
# |
Jul 23rd 2018, 22:12 |
mdotobie |
Okay I see what you mean now |
# |
Jul 23rd 2018, 22:11 |
mdotobie |
So I have to call the classes inside the plugin from the Plugin.php |
# |
Jul 23rd 2018, 22:10 |
mdotobie |
Plus it was a good way to dive into developing plugins |
# |
Jul 23rd 2018, 22:10 |
mdotobie |
I envision the functionality might be helpful for future projects |
# |
Jul 23rd 2018, 22:09 |
saeideng |
of course Plugins is good place for your codes |
# |
Jul 23rd 2018, 22:09 |
saeideng |
without any problem and needing to composer |
# |
Jul 23rd 2018, 22:08 |
saeideng |
you can work in folder under `src` |
# |
Jul 23rd 2018, 22:08 |
saeideng |
and why in Plugins folder ? |
# |
Jul 23rd 2018, 22:07 |
saeideng |
just make sure your plugin files loaded successfully by composer , not `$this->addPlugin...` |
# |
Jul 23rd 2018, 22:06 |
saeideng |
`new yourclass()` |
# |
Jul 23rd 2018, 22:06 |
saeideng |
`use CakePHP_DataDog\yourclass` |