This project is Integration between CodeIgniter 4 with AdminLTE 3 by Awan
There are multiple ways to install.
-
Via Git Clone
git clone https://github.com/awanz/ci4-adminlte3.git
-
Via Composer
composer create-project awan/ci4-adminlte3
If installation success, dont forget update with command
composer update
, then you can run project with command
php spark serve
Copy env
to .env
and tailor for your app, specifically the baseURL
and any database settings.
- Example View
<?= $this->extend('layouts/master') ?>
<?= $this->section('head') ?>
<!-- External Lib for Head -->
<?= $this->endSection() ?>
<?= $this->section('foot') ?>
<!-- External Lib for Foot -->
<?= $this->endSection() ?>
<?= $this->section('content') ?>
<!-- Content Here -->
<?= $this->endSection() ?>
in controller or router, dont forget for insert variable title
$data['title'] = "Your Tittle";
breadcrumb title
$data['breadcrumb_title'] = "Breadcrumb Title";
and breadcrumb content
$data['breadcrumb'] = array(
array(
'title' => 'Home',
'link' => 'dashboard'
),
array(
'title' => 'Breadcrumb Title',
'link' => null
)
);
if no have link url or want actived link set null
PHP version 7.2 or higher is required, with the following extensions installed:
Additionally, make sure that the following extensions are enabled in your PHP: