Skip to content

Getting Started

CakeLTE is a CakePHP 5.x plugin that wraps AdminLTE 4.x, an accessible Bootstrap 5 admin theme. It provides the layouts, header elements, sidebar and helper trait so you can build an admin panel on top of a modern, vanilla-JavaScript theme instead of maintaining the markup by hand.

Dependencies

Requirements

  • PHP >= 8.2
  • CakePHP >= 5.0

Installation

Install the plugin with composer:

composer require arodu/cakelte

Loading the plugin

Load the plugin in src/Application.php or with the shell command:

bin/cake plugin load CakeLte

Publishing the assets

Publish the AdminLTE assets to your webroot (creates a symlink):

bin/cake cakelte install

If the symlink cannot be created on your platform, see Troubleshooting.

This is a manual step of your application. It is not run automatically by composer.

Configure the plugin

Copy the default configuration into your application:

cp vendor/arodu/cakelte/config/cakelte.php config/cakelte.php

Then use CakeLteTrait in src/View/AppView.php; see Layouts for the complete example. The plugin loads BootstrapUI and BootstrapTools automatically when it is loaded.

Verifying the installation

Confirm the plugin is loaded:

bin/cake plugin loaded

You should see CakeLte in the list.

Next steps

  • Read Configuration to choose the layout and review the options.
  • Read Theme & assets to customize the app name, logo, CSS and scripts.
  • Read Layouts to wire the layouts and the CakeLteTrait.
  • Read Customization to override templates and generate code with the bake templates.

Back to index