Full UI theme for CakePHP
JS
and CSS
files in main
layoutapp/Plugin/CakeTheme/Config/caketheme.php
to app/Config
Add build configuration in file app/Config/asset_compress.ini
, e.g.:
; List of additional JS files for Main layout
[additional-files.js]
filters[] = YuiJs
files[] = plugin:SearchInfo:js/SearchInfo.js
Add list of additional files in file app/Config/caketheme.php
, e.g.:
$config['CakeTheme'] = [
'AdditionalFiles' => [
// List of additional JS files
'js' => ['search-info'],
],
];
Console/cake asset_compress clear
Console/cake asset_compress build_ini --force
cake_config_plugin
./**
* This file configures main theme
*
* To modify these parameters, copy this file into your own CakePHP APP/Config directory.
* CakeTheme: Set theme for application.
* @copyright Copyright 2016-2018, Andrey Klimov.
* @license https://opensource.org/licenses/mit-license.php MIT License
* @package plugin.Config
*/
$config['CakeTheme'] = [
'AdditionalFiles' => [
// List of additional CSS files
'css' => [],
// List of additional JS files
'js' => [],
]
];