chcnet / admin-lte
CakePHP 的 AdminLTE 2.0 主题插件
dev-master
2020-02-22 07:47 UTC
Requires
- cakephp/cakephp: 4.*
Requires (Dev)
- phpunit/phpunit: ^8.0
- dev-master
- dev-dependabot/npm_and_yarn/webroot/json5-1.0.2
- dev-dependabot/npm_and_yarn/webroot/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/webroot/engine.io-6.2.1
- dev-dependabot/npm_and_yarn/webroot/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/webroot/jszip-3.7.0
- dev-dependabot/npm_and_yarn/webroot/moment-timezone-0.5.37
- dev-dependabot/npm_and_yarn/webroot/terser-4.8.1
- dev-dependabot/npm_and_yarn/webroot/moment-2.29.4
- dev-dependabot/npm_and_yarn/webroot/jquery-validation-1.19.5
- dev-dependabot/npm_and_yarn/webroot/shell-quote-1.7.3
- dev-dependabot/npm_and_yarn/webroot/node-sass-7.0.0
- dev-dependabot/npm_and_yarn/webroot/undefsafe-2.0.5
- dev-dependabot/npm_and_yarn/webroot/datatables.net-1.11.3
- dev-dependabot/npm_and_yarn/webroot/set-value-4.0.1
- dev-dependabot/npm_and_yarn/webroot/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/webroot/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/webroot/chart.js-2.9.4
- dev-dependabot/npm_and_yarn/webroot/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/webroot/lodash-4.17.21
- dev-dependabot/npm_and_yarn/webroot/y18n-3.2.2
- dev-dependabot/npm_and_yarn/webroot/ini-1.3.8
- dev-dependabot/npm_and_yarn/webroot/jquery-3.5.0
- dev-dependabot/npm_and_yarn/webroot/acorn-5.7.4
- dev-whitesource/configure
This package is auto-updated.
Last update: 2024-09-05 11:30:22 UTC
README
CakePHP 4.x 的 AdminLTE 3 主题
安装
这是一个适用于 CakePHP 4.x 及更高版本的 Theme Plugin。它包含了从 https://adminlte.cn 完整且未修改的 AdminLTE 包。请参考 https://adminlte.cn/themes/AdminLTE/documentation/index.html 了解文档和使用此主题的说明。该包包含 Bootstrap 3、jQiery 1.11+ 以及所有提到的其他插件。因此,对于此 composer 包的正确功能,没有必要包含 bootstrap 或 jquery。
您可以使用 composer 将此插件安装到您的 CakePHP 应用程序中。
安装 composer 包的推荐方式是
composer require chcnet/admin-lte
CakePHP 使用方法
要开始使用此主题,请将其添加到您的 src/Controller/AppController.php 中进行设置
class AppController extends Controller
{
...
public function beforeRender(\Cake\Event\EventInterface $event)
{
$this->viewBuilder()->setTheme('AdminLTE');
}
...
}
然后在 templates/layout/ 中准备一个合适的 default.php,采用 AdminLTE 风格。请以默认演示布局为起点,构建您的网站布局:https://adminlte.cn/themes/AdminLTE/index2.html。
请务必搜索并替换所有“../../”的实例为“/AdminLTE/”(包括闭合括号)。
这样您就可以开始使用了 :-)
编程愉快。