# |
Sep 18th 2019, 15:11 |
dereuromark |
Given contribution stats, it is already ADmadPHP |
# |
Sep 18th 2019, 15:10 |
neon1024 |
:male_mage: |
# |
Sep 18th 2019, 15:10 |
neon1024 |
We should consult the council of Marks and Josés |
# |
Sep 18th 2019, 15:09 |
neon1024 |
Don’t tell @dereuromark |
# |
Sep 18th 2019, 15:08 |
admad |
@neon1024 I need it is enough reason for having it in core :P |
# |
Sep 18th 2019, 15:01 |
neon1024 |
Perhaps I’m in the minority for not needing translations |
# |
Sep 18th 2019, 15:00 |
neon1024 |
Why isn’t it still a plugin? |
# |
Sep 18th 2019, 15:00 |
jh |
@admad |
# |
Sep 18th 2019, 15:00 |
jh |
The shadow table strategy in built in 4.x core so good |
# |
Sep 18th 2019, 14:30 |
val |
@dereuromark which are deprecated :( |
# |
Sep 18th 2019, 14:29 |
dereuromark |
in 2.x it was attach() and detach() which I like a bit more in terms of naming convention for behaviors^^ |
# |
Sep 18th 2019, 14:27 |
val |
I think it is `$this->Category->Behaviors->unload('Translate');` or `$this->Category->Behaviors->disable('Translate');` in 2.x |
# |
Sep 18th 2019, 14:26 |
admad |
shadow table strategy only requires 1 join |
# |
Sep 18th 2019, 14:25 |
admad |
The shadow table strategy in built in 4.x core |
# |
Sep 18th 2019, 14:24 |
admad |
I have never actually used the EAV based translate behavior so no idea. I use https://github.com/AD7six/cakephp-shadow-translate which is lot more efficient in terms of query |
# |
Sep 18th 2019, 14:22 |
val |
so, there is no way to do that at the moment? |
# |
Sep 18th 2019, 14:22 |
admad |
you can submit a patch :slightly_smiling_face: |
# |
Sep 18th 2019, 14:18 |
val |
the join is unnecessary, f.ex. `select id from posts` |
# |
Sep 18th 2019, 14:16 |
admad |
How can it know whether translation exists or not without doing the join? |
# |
Sep 18th 2019, 14:12 |
val |
Hi, TranslateBehavior by default joins i18n table even if there is no need to retrieve a translation. Is there an easy way to disable that? So that no join would be generated. |
# |
Sep 18th 2019, 14:11 |
ricksaccous |
;) |
# |
Sep 18th 2019, 14:11 |
ron.rattie |
Thanks Richard |
# |
Sep 18th 2019, 14:10 |
ricksaccous |
good luck |
# |
Sep 18th 2019, 14:10 |
ron.rattie |
Well progress has been made.. on to other errors. |
# |
Sep 18th 2019, 14:01 |
ricksaccous |
otherwise i'd reconsider this approach, you can also load a theme in the AppView class along with the layout, however if you do set certain things in the AppView class then you'll find you're messing with cake defaults in some places, ie displaying json, etc |
# |
Sep 18th 2019, 14:00 |
ron.rattie |
I see the truth in of it |
# |
Sep 18th 2019, 13:59 |
ricksaccous |
as in, in multiple projects |
# |
Sep 18th 2019, 13:59 |
ricksaccous |
meh, if you plan on using this theme elsewhere it might be useful |
# |
Sep 18th 2019, 13:59 |
neon1024 |
Fixed this for you |
# |
Sep 18th 2019, 13:59 |
neon1024 |
> I want to make it harder to maintain |
# |
Sep 18th 2019, 13:59 |
ricksaccous |
lolll |
# |
Sep 18th 2019, 13:58 |
neon1024 |
Perhaps it has a nice bake theme with it? |
# |
Sep 18th 2019, 13:58 |
ron.rattie |
@ricksaccous I want to keep it modular |
# |
Sep 18th 2019, 13:56 |
ricksaccous |
@ron.rattie out of curiosity why are you putting this in a plugin, couldn't you simply edit the default.ctp? |
# |
Sep 18th 2019, 13:45 |
jotpe |
For your assets, try to symlink the plugins' assets: https://book.cakephp.org/3.0/en/deployment.html#symlink-assets |
# |
Sep 18th 2019, 13:44 |
jotpe |
Hm looks good to me, I have the same setup and my plugins' layout is used. Maybe try to delete the content of app/tmp |
# |
Sep 18th 2019, 13:42 |
ron.rattie |
Theme>src>Template>Layout>default.ctp |
# |
Sep 18th 2019, 13:42 |
alexdd55976 |
just replace default.php in Layouts |
# |
Sep 18th 2019, 13:42 |
jotpe |
Where's the Layout located? |
# |
Sep 18th 2019, 13:40 |
ron.rattie |
Okay, I have a default Layout for the Theme created and yet I'm still seeing the standard CakePHP page. Am I missing something else? |
# |
Sep 18th 2019, 13:38 |
jotpe |
Yes |