awan/ci4-adminlte3

CodeIgniter4 integrated with AdminLTE 3 by awan

Installs: 155

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 2

Open Issues: 0

Language:JavaScript

Type:project

v1.0.0 2020-12-06 08:13 UTC

This package is auto-updated.

Last update: 2024-05-06 16:42:33 UTC


README

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)