# |
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 |
# |
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 |