Log message #4261236

# At Username Text
# Apr 13th 2021, 11:35 kevin.pfeifer then it would be the easiest to just copy that plugin to your apps
# Apr 13th 2021, 11:35 paolo.bragagni and I'd like that the 'core' compare one only time in my server with dozen of apps
# Apr 13th 2021, 11:34 paolo.bragagni (government organization..)
# Apr 13th 2021, 11:34 paolo.bragagni I have to use only internal source
# Apr 13th 2021, 11:33 kevin.pfeifer github is just an easy example but you can use it with other vendors as well https://packagist.com/features/integration-github-bitbucket-gitlab
# Apr 13th 2021, 11:32 paolo.bragagni one step at a time :)
# Apr 13th 2021, 11:31 paolo.bragagni cant use github in my organization
# Apr 13th 2021, 11:30 paolo.bragagni then I bake all my apps from that folder
# Apr 13th 2021, 11:30 kevin.pfeifer then I would develop the core as a plugin, publish that via e.g. github and make it downloadable via packagist And then you can require that core plugin in all your apps where your “normal” src directory is app specific but all your core functionality lives in the plugin
# Apr 13th 2021, 11:30 paolo.bragagni now in my linux server I have a folder called cake-2.9
# Apr 13th 2021, 11:29 paolo.bragagni I mean. I will have many projects with same core
# Apr 13th 2021, 11:28 paolo.bragagni another thing that I like to do is to separate the 'core' from the src
# Apr 13th 2021, 11:27 kevin.pfeifer yop :)
# Apr 13th 2021, 11:27 paolo.bragagni (have to learn twig, I uppose..)
# Apr 13th 2021, 11:26 kevin.pfeifer and then adjust the templates as you like it
# Apr 13th 2021, 11:26 paolo.bragagni wow thanks
# Apr 13th 2021, 11:26 kevin.pfeifer ```// in src/Application::bootstrapCli() before loading the 'Bake' plugin. Configure::write('Bake.theme', 'MyTemplates');```
# Apr 13th 2021, 11:26 kevin.pfeifer and set your new templates as the new generation default
# Apr 13th 2021, 11:25 kevin.pfeifer copy all folders from vendor/cakephp/bake/templates/bake to plugins/MyTemplates/templates/bake
# Apr 13th 2021, 11:25 kevin.pfeifer all you need to do is that: ```bin/cake bake plugin MyTemplates```
# Apr 13th 2021, 11:24 paolo.bragagni (already done for cake2 but its time to switch..)
# Apr 13th 2021, 11:23 paolo.bragagni I'd like to create a template for all my future apps
# Apr 13th 2021, 11:23 kevin.pfeifer i personally hate it when i have like 50 folders in my templates directory
# Apr 13th 2021, 11:23 paolo.bragagni @kevin.pfeifer have you got some examples of plugin so that I can pick some ideas
# Apr 13th 2021, 11:23 kevin.pfeifer well in the long term if your app grows and grows I would very much recommend to you to split up your individual parts into custom plugins
# Apr 13th 2021, 11:21 paolo.bragagni many changes ... :(
# Apr 13th 2021, 11:21 paolo.bragagni in my old cake 2 I had a folder inside Console/Templates/
# Apr 13th 2021, 11:21 paolo.bragagni thanks so the best way is to create a plugin
# Apr 13th 2021, 11:18 kevin.pfeifer i personally created a separate plugin for that where all my custom generated templates are gathered together
# Apr 13th 2021, 11:18 kevin.pfeifer https://book.cakephp.org/bake/2/en/development.html#bake-template-syntax
# Apr 13th 2021, 11:18 paolo.bragagni yep
# Apr 13th 2021, 11:18 kevin.pfeifer you mean like bake templates?
# Apr 13th 2021, 11:17 paolo.bragagni I'd like to change the generation
# Apr 13th 2021, 11:17 paolo.bragagni I'd like to know where these templates are build
# Apr 13th 2021, 11:17 paolo.bragagni thanks @kevin.pfeifer but these are the templates of the views
# Apr 13th 2021, 11:12 kevin.pfeifer well the start of the DOM live in `templates/layout/default.php` and the rest lives in the corresponding `templates/<controller>/<method>.php` I would recommend you to use elements as much as possible since they are an easy way to re-use already defined template-parts
# Apr 13th 2021, 11:08 paolo.bragagni (done years ago for cake 2)
# Apr 13th 2021, 11:08 paolo.bragagni :)
# Apr 13th 2021, 11:08 paolo.bragagni hi. trying to find a way to build my own template for cake4, but I dont know even how to start
# Apr 13th 2021, 11:00 admad And use saveMany() for each batch
# Apr 13th 2021, 10:55 neon1024 Thanks for the input :thumbsup: