awan / ci4-adminlte3
由 awan 集成的 CodeIgniter4 与 AdminLTE 3
v1.0.0
2020-12-06 08:13 UTC
Requires
- php: >=7.2
- codeigniter4/framework: ^4
Requires (Dev)
- fzaninotto/faker: ^1.9@dev
- mikey179/vfsstream: 1.6.*
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2024-09-06 17:29:35 UTC
README
本项目是 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 或更高,并安装以下扩展
此外,请确保以下扩展已在您的 PHP 中启用