Skip to content

awanz/ci4-adminlte3

Repository files navigation

CodeIgniter 4 integrated with AdminLTE 3 Tweet

License: MIT

This project is Integration between CodeIgniter 4 with AdminLTE 3 by Awan

Installation & updates

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

Setup

Copy env to .env and tailor for your app, specifically the baseURL and any database settings.

Usage

  • 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

Server Requirements

PHP version 7.2 or higher is required, with the following extensions installed:

  • intl
  • libcurl if you plan to use the HTTP\CURLRequest library

Additionally, make sure that the following extensions are enabled in your PHP:

  • json (enabled by default - don't turn it off)
  • mbstring
  • mysqlnd
  • xml (enabled by default - don't turn it off)