awan/ci4-adminlte3

由 awan 集成的 CodeIgniter4 与 AdminLTE 3

安装: 162

依赖: 0

建议: 0

安全: 0

星级: 1

关注者: 2

分支: 2

开放问题: 0

语言:JavaScript

类型:项目

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

This package is auto-updated.

Last update: 2024-09-06 17:29:35 UTC


README

License: MIT

本项目是 Awan 集成的 CodeIgniter 4 与 AdminLTE 3

安装和更新

有多种安装方式。

  • 通过 Git 克隆

    git clone https://github.com/awanz/ci4-adminlte3.git
  • 通过 Composer

    composer create-project awan/ci4-adminlte3

如果安装成功,不要忘记使用命令

composer update 更新,然后可以使用命令运行项目

php spark serve

设置

env 复制到 .env 并根据您的应用程序进行调整,特别是 baseURL 和任何数据库设置。

使用方法

  • 示例视图
<?= $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() ?>

在控制器或路由器中,不要忘记插入变量 title

$data['title'] = "Your Tittle";

面包屑标题

$data['breadcrumb_title'] = "Breadcrumb Title";

和面包屑内容

$data['breadcrumb']  =  array(
                            array(
                                'title' => 'Home',
                                'link' => 'dashboard'
                            ),
                            array(
                                'title' => 'Breadcrumb Title',
                                'link' => null
                            )
                        );

如果没有链接 URL 或想激活 链接,请设置为 null

服务器要求

需要 PHP 版本 7.2 或更高,并安装以下扩展

  • intl
  • 如果计划使用 HTTP\CURLRequest 库,需要 libcurl

此外,请确保以下扩展已在您的 PHP 中启用

  • json(默认启用 - 不要关闭)
  • mbstring
  • mysqlnd
  • xml(默认启用 - 不要关闭)