Tatter\AdminLTE
Integration of the popular AdminLTE dashboard for CodeIgniter 4
Description
This library leverages Tatter\Assets to automate asset discovery and HTML tag injection for the popular AdminLTE dashboard. Be sure to read the documentation for Tatter\Assets
on how to integrate the filter with your application's routes.
Note: While this library may be used by itself the author's intent is to include it with Tatter\Frontend to provide an opinionated suite of frontend utilities.
Installation
Install easily via Composer to take advantage of CodeIgniter 4's autoloading capabilities and always be up-to-date:
> composer require tatter/adminlte
Or, install manually by downloading the source files and adding the directory to app/Config/Autoload.php
.
Once the files are downloaded and included in the autoload run the framework's publish
command to inject all assets into your front controller path:
> php spark publish
Configuration
For full configuration details see the Assets docs.
Enable the AssetsFilters
on any "after" routes where you want tags applied. To apply them everywhere simply add to $globals
. app/Config/Filters.php:
/**
* List of filter aliases that are always
* applied before and after every request.
*
* @var array
*/
public $globals = [
'before' => [
// 'honeypot',
// 'csrf',
],
'after' => [
'assets',
],
];
Then create or edit your Assets
config file and add the bundle. app/Config/Assets.php:
<?php
namespace Config;
class Assets extends \Tatter\Assets\Config\Assets
{
public $routes = [
'*' => [
\Tatter\AdminLTE\Bundles\AdminLTEBundle::class,
],
];
}
Versioning
The intent is to maintain two major versions of this library, one for AdminLTE 3 (Bootstrap 4) and one for AdminLTE 4 (Bootstrap 5), for an indefinite amount of time until AdminLTE 4 is fully released for production use. Current version tracking:
Library version | Bootstrap version | AdminLTE version |
---|---|---|
1.x |
4.x |
3.x |
2.x |
5.x |
4.x |