What is the appropriate place to allocate the Javascript
and CSS
libraries and plugins in CakePHP 3, since there was a major change in the directory structure of this version to earlier.
All files .js
and .css
have a specific and separate location.
All calls to files are made this way ():
<?= $this->Html->css('style.css') ?>
<?= $this->Html->script('main.js',['defer' => true]) ?>
It is now possible to notice that there is presumption of the directory where the files are.
Structure of directories (I took prints to see 100% structure and what's inside each one):
OBS: Plugins and Libraries like Jquery, Jquery-ui and Bootstrap have folders and subfolders, font files, icons, images, javascript and css.