Troubleshooting¶
Assets are not published¶
bin/cake cakelte install creates a symlink from webroot/adminlte to
vendor/almasaeed2010/adminlte. On Windows, restricted permissions, or when the
path already exists, the symlink may not be created; the command can still print
Done.
Check the result:
If it is missing, remove any stale entry and copy the package manually:
On Windows, use the equivalent copy command or copy the folder with your file
manager. If you use a copy instead of a symlink, repeat it after
composer update.
The command declares --overwrite / -o, but 3.x does not apply it yet. Remove
webroot/adminlte manually before running the command again.
AdminLTE assets return 404¶
Confirm that the files exist:
If the files exist but the browser still gets 404, check that your web server
follows symlinks in webroot/. If it does not, use the manual copy from
Assets are not published.
The menu override does not apply¶
Copying vendor/arodu/cakelte/config/menu.php to config/menu.php does not
replace the sidebar menu: the plugin always loads its own CakeLte.menu file.
Override templates/plugin/CakeLte/element/sidebar/menu.php and load your file
explicitly:
See Menus and Sidebar for the full override.
rtl has no effect¶
The helper exposes rtl(), but the bundled layouts do not add dir="rtl" or
load adminlte.rtl.css. See
Configuration for the current behavior and
the custom-layout workaround.
/cakelte/debug or /cakelte/sample returns 404¶
Both sample pages require debug mode. The controller throws NotFoundException
when Configure::read('debug') is false. See Pages.
Template overrides are ignored¶
Overrides must live under templates/plugin/CakeLte/ and keep the same
structure as the plugin's templates/ directory. After adding or changing an
override, clear the view cache:
See Customization for the file list and the copy_files
command.
The bake command is not found¶
Install Bake in the application:
Then use the CakeLTE theme:
The CakeLte helper is missing¶
Make sure the plugin is loaded:
And call initializeCakeLte() from AppView::initialize() after
parent::initialize(). See Layouts.