Log message #4100651

# At Username Text
# 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
# Dec 4th 2017, 13:20 hmic you could use that or create a custom class file/lib to do your computations and referto that from the different contexts (controller vs. shell)
# Dec 4th 2017, 13:20 hmic max775: of course you can access any model/table from a shell
# Dec 4th 2017, 13:19 max775 Yeah I thought so, because I just can import models into my Shell files. But, lets say, I just wanna format some data in my main data array in another way and save it to the array, where do I do that? In the table files?
# Dec 4th 2017, 13:17 dereuromark yeah, definitely outside of the communication layer
# Dec 4th 2017, 13:16 slackebot2 exactly?
# Dec 4th 2017, 13:16 max775 Hello guys, I just wanted to ask something about the basic cake architecture. I wanted to set up some cron jobs and send a templated email with it, which receives dynamically data from my db and sends it. But the problem now is that my business logic and data preparation is in my controllers, what I think was a mistake. So could anybody of you tell me where I have to put my data preparation methods? In the models? And if so in which files
# Dec 4th 2017, 13:12 dereuromark Does anyone have a decent navigation plugin, incl some nesting and auto-select mode for basic controller action etc? I think sth complete here is still missing somewhat in our eco system.
# Dec 4th 2017, 13:11 admad okay, i'll look into i