Closed katouam closed 7 months ago
I found a solution. But I don't know this is the correct way to do it...
I referred to the following method. https://book.cakephp.org/4/en/plugins.html#plugin-templates
Create a plugin/CakeLte directory {myproject}/templates/plugin/CakeLte/layout
Place layout files. {myproject}/templates/plugin/CakeLte/layout/default.php
By the way, I tried moving elements under the plugin directory,
example {myproject}/templates/plugin/CakeLte/element/header/main.php {myproject}/templates/plugin/CakeLte/element/header/menu.php {myproject}/templates/plugin/CakeLte/element/content/header.php
These were overwritten.
If anyone knows, please comment if this method is correct.
I found a solution. But I don't know this is the correct way to do it...
Yes.. that is the correct way to do it...
Thanks for this wonderful AdminLTE plugin.
I was able to overwrite correctly the folders under the "templates/element/" dir. But The Layout files ( "templates/layout/" ) were not able to overwrite.
Layouts
copy from vendor/arodu/cakelte/templates/layout/default.php
to templates/layout/default.php ... I customized this file
Do I need any settings? I use trait into src/View/AppView.php (Recomended)
My environment.