Skip to content

CakeLTE 3.x

CakePHP 5 AdminLTE 4 PHP 8.2+

CakeLTE is a CakePHP 5.x plugin that wraps AdminLTE 4 and Bootstrap 5. It provides layouts, header and sidebar elements, and helper integrations so you can build an admin panel without maintaining the AdminLTE markup by hand.

Version 3.x

This documentation covers CakeLTE 3.x (CakePHP 5 + AdminLTE 4). The 2.x line uses AdminLTE 3 and is not covered here.

Install

composer require arodu/cakelte
bin/cake plugin load CakeLte
bin/cake cakelte install

Copy the configuration and wire the CakeLteTrait in your AppView. Getting Started walks through the full setup.

What you get

  • CakeLte.default and CakeLte.login layouts built on the AdminLTE 4 starter.
  • Header elements: menu, search, messages, notifications, language, fullscreen, color mode and user.
  • Sidebar with brand, menu tree and client-side filter.
  • Menu construction through arodu/cakephp-bootstrap-tools, with MenuLte for the sidebar and Menu for Bootstrap navs, pills and tabs.
  • AdminLTE-compatible helpers through arodu/cakephp-bootstrap-tools.
  • Console commands to publish assets and copy templates.

Documentation

Section What it covers
Getting Started Requirements, installation, plugin loading, assets and configuration.
Configuration config/cakelte.php, the Layout enum, body classes and rtl.
Theme & assets App name and logo, CSS/JS lists, meta tags and helper methods.
Layouts The two layouts, CakeLteTrait and content blocks.
Header Header elements and the search action.
Sidebar Sidebar structure, menu format and override.
Menus Menu construction, item reference, active items and menu variants.
Pages Debug and sample pages.
Commands cakelte install and cakelte copy_files.
Customization Template overrides and bake templates.
Upgrading from 2.x Breaking changes and migration checklist.
Troubleshooting Assets, menus, RTL, templates and common errors.

Back to the GitHub repository.