Log message #4100628

# At Username Text
# 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
# Dec 4th 2017, 13:11 dereuromark Updating cakephp/bake (1.4.4 => 1.5.4) So yeah
# Dec 4th 2017, 13:07 admad err 1.5.4
# Dec 4th 2017, 13:07 admad @birdy247 @dereuromark you guys checked with latest 1.5.3 ?
# Dec 4th 2017, 13:04 dereuromark I think we should still verify that the theme subpath is a requirement when setting -t option
# Dec 4th 2017, 13:03 dereuromark I wonder if it could be related to https://github.com/cakephp/bake/compare/1.4.3...1.5.0#diff-6d80ca9deffb52c228835f7a4ec10a93L276 and the silent ctp fallback later in code
# Dec 4th 2017, 13:01 dereuromark Especially in verbose mode
# Dec 4th 2017, 13:01 dereuromark We should be a bit more verbose in outputting the theme it used / paths etc. Easier for debugging
# Dec 4th 2017, 13:01 dereuromark I can confirm bake silently ignoring the theme now
# Dec 4th 2017, 12:59 birdy247 I am trying to find the time for the datetime plugin
# Dec 4th 2017, 12:59 birdy247 currently on bitbucket
# Dec 4th 2017, 12:59 birdy247 @dereuromark Sure, we will add it to a github repo
# Dec 4th 2017, 12:58 birdy247 Its weird, not picking up the themes
# Dec 4th 2017, 12:56 birdy247 bin/cake bake template MemberAffiliations --theme Adminlte
# Dec 4th 2017, 12:56 dereuromark @birdy247 Any update on what you wanted to pluginize? :slightly_smiling_face: I might also be interested in the admintle theme though :P
# Dec 4th 2017, 12:53 birdy247 Do I need to configure anything?
# Dec 4th 2017, 12:53 birdy247 I havent changed anything, but --theme Adminlte no longer uses my templates
# Dec 4th 2017, 12:52 admad i have used latest bake with custom ctp templates and it works fine
# Dec 4th 2017, 12:51 jkpatel291289 @dereuromark ok thanks.
# Dec 4th 2017, 12:51 admad @birdy247 as of 1.5 bake uses twig templates, but backwards compatibility has been maintained with old ctp templates
# Dec 4th 2017, 12:51 dereuromark See https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#custom-find-methods
# Dec 4th 2017, 12:50 dereuromark But in your case you could also just pass the id into a customer finder and filter by that.
# Dec 4th 2017, 12:50 birdy247 My custom templates are not being used
# Dec 4th 2017, 12:49 birdy247 has something changed with bake?