# |
Dec 4th 2017, 14:26 |
d-fens |
like don' t want to manually dummy edit a entity just to get the countercache recalculated |
# |
Dec 4th 2017, 14:26 |
d-fens |
hi, how can i mass update the countercache value ? |
# |
Dec 4th 2017, 14:12 |
admad |
great, thanks |
# |
Dec 4th 2017, 14:12 |
wyrihaximus |
Sounds fixable. Let me finish migrating a site and then I'll have a look at it |
# |
Dec 4th 2017, 14:11 |
admad |
so you if a bake theme doesn't have .twig template you always get back the .ctp from default bake theme |
# |
Dec 4th 2017, 14:11 |
admad |
Because for themes if a template is not found then View looks for same file within app itself (or inside bake in case of bake) which is always found |
# |
Dec 4th 2017, 14:10 |
admad |
@wyrihaximus the fallback to ctp if twig template is not available implemented in Twig::_getViewFilename() doesn't work as expected when using themes. |
# |
Dec 4th 2017, 14:07 |
wyrihaximus |
@admad sup? |
# |
Dec 4th 2017, 14:04 |
obinoob9 |
is there any built in option to validate one entity from a batch of hasManny associations? I have worked around by looping $this->request->data and unset the index... |
# |
Dec 4th 2017, 13:59 |
admad |
@birdy247 @dereuromark it's a bug in how TwigView handles fallback to ctp if twig file is not found. I'll take it up with @wyrihaximus |
# |
Dec 4th 2017, 13:42 |
birdy247 |
yes json type |
# |
Dec 4th 2017, 13:33 |
hmic |
not as fields in the table, but a combined field, like JsonType, so you can add arbitrary things... |
# |
Dec 4th 2017, 13:32 |
birdy247 |
etc. |
# |
Dec 4th 2017, 13:32 |
birdy247 |
hmic we hold controller => xxxx. action => xxxx |
# |
Dec 4th 2017, 13:32 |
hmic |
but that's only my 5ct |
# |
Dec 4th 2017, 13:31 |
hmic |
birdy247: i'd rather use a tree structure, additionaly, i'd not want ready-build urls in the db, but the information needed to build them |
# |
Dec 4th 2017, 13:28 |
max775 |
Ok ill keep that in mind and keep everything except communication out of the controllers ;) |
# |
Dec 4th 2017, 13:28 |
birdy247 |
not ideal, but it works :slightly_smiling_face: |
# |
Dec 4th 2017, 13:28 |
birdy247 |
in a text editor |
# |
Dec 4th 2017, 13:28 |
birdy247 |
for now, the menu is created used dot noation (custom data type) |
# |
Dec 4th 2017, 13:27 |
birdy247 |
its for a multitenant app |
# |
Dec 4th 2017, 13:27 |
birdy247 |
we then store the cake url array as json |
# |
Dec 4th 2017, 13:27 |
birdy247 |
s |
# |
Dec 4th 2017, 13:27 |
birdy247 |
the DB is simply menu hasMany menu_item |
# |
Dec 4th 2017, 13:26 |
dereuromark |
sounds good |
# |
Dec 4th 2017, 13:26 |
birdy247 |
I would like to use vue.js |
# |
Dec 4th 2017, 13:26 |
dereuromark |
:slightly_smiling_face: I have just been waiting 5 years for you to finally write it - awesome HEHE |
# |
Dec 4th 2017, 13:26 |
birdy247 |
drag/drop |
# |
Dec 4th 2017, 13:26 |
birdy247 |
this is exactly what I am looking to build |
# |
Dec 4th 2017, 13:26 |
dereuromark |
at some point it might be interesting to map it even with some auth. |
# |
Dec 4th 2017, 13:25 |
hmic |
good cake forces you to think more about your project structure i think :D |
# |
Dec 4th 2017, 13:25 |
dereuromark |
@birdy247 Well, some nice gui for drag and drop sorting/ordering and nesting the menu items would be cool, but for starters it could also be sth more static (even file based). |
# |
Dec 4th 2017, 13:25 |
hmic |
which is as bad practise with them too ;-) |
# |
Dec 4th 2017, 13:25 |
max775 |
Just was confused because with other frameworks i usually wrote that in controllers |
# |
Dec 4th 2017, 13:24 |
max775 |
:slightly_smiling_face: that sounds nice. I think I will look into that. Thanks for the hint guys |
# |
Dec 4th 2017, 13:23 |
hmic |
you can have it - with probably many more very soon - live in a BussinessLogic/ subdir, or just Libs/ ... |
# |
Dec 4th 2017, 13:23 |
dereuromark |
especially if this is business logic unrelated to database ORM |
# |
Dec 4th 2017, 13:23 |
dereuromark |
own library classes would work. |
# |
Dec 4th 2017, 13:22 |
max775 |
yes I think I wrote it not clearly. I know that I JUST am able to import models. That would mean that I need to put the data preparation into the models. But the cutoms file for computations sounds nice. But what area of the filesystem should I use there? I read that loading components in shell files is bad practice, but I never thought about creating my own library |
# |
Dec 4th 2017, 13:22 |
birdy247 |
We made a basic menu/menu_item plugin |
# |
Dec 4th 2017, 13:21 |
birdy247 |
@dereuromark can you expand on the navigation system |