futurando-oficial/cakephp-admin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

futurando-oficial/cakephp-admin

Composer 安装命令:

composer require futurando-oficial/cakephp-admin

包简介

CakePagesTemplate plugin for CakePHP

README 文档

README

A custom theme using Twitter Bootstrap to bake admin templates in CakePHP 3, using the CakePHP Bake plugin.

Requirements

  • CakePHP 3.6
  • PHP 5.6+

What is it?

This is a theme for the CakePHP/Bake plugin which will customise the code which is generated. I've made it because I don't like the default bake theme, or the fact that it outputs the actions sidebar.

Plus I tend to use Twitter Bootstrap to make my admin areas so this theme will leverage that front-end framework.

Installation

You should install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is using,

composer require futurando-oficial/cakephp-admin

Setup

In your config/bootstrap.php you'll need to load the plugin with Plugin::load('CakePagesTemplate');

In your admin layout, you'll need to include the theme and javascript if you're using Twitter Bootstrap. This snippet also includes jQuery, so if you've already loaded that, please remove that line.

// In the head of your layout
<?= $this->Html->css([
    '//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css',
    '//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css'
]) ?>

// Before your script block
<?= $this->Html->script([
    '//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js',
    '//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js'
]);?>

Optional extras

If you want to use Twitter Bootstrap for all your forms be sure to enable friendsofcake/bootstrap-UI in your application and loading the helpers in your src/View/AppView.php. Find out more about installing bootstrap-ui in their readme.

This can be easily coupled with the friendsofcake/crud plugin to pretty much make an entire basic admin in around 5 minutes!

A basic stylesheet is included to fix some minor things. You can symlink the stylesheet into your own webroot/css and include it from there, using

$ bin/cake plugin assets symlink CakePagesTemplate

Of if you want to create the link manually cd webroot/css && ln -s ../../vendor/davidyell/nice-admin-bake-scripts/webroot/css/nice-admin.css.

Baking

The theme should be available when you are baking. You can check this by just running a bake command with -h and checking the available themes listed in the --theme option help. If you don't see it make sure you've loaded the plugin.

Controllers

bin/cake bake controller --theme=CakePagesTemplate Examples

Templates

bin/cake bake template --theme=CakePagesTemplate Examples

Prefixed templates

bin/cake bake template --theme=CakePagesTemplate --prefix=Admin Examples

Example layout, elements and dashboard

A basic admin layout, dashboard and navigation elements are included in the plugin. Which you can symlink, extend, or copy into your project as you see fit.

If you want to link to the styles. echo $this->Html->css(['nice-admin']);

However it's preferable to use a symlink.

$ bin/cake plugin assets symlink CakePagesTemplate

⚠️ These elements are optional, and do not provide a completed admin. You will need to customise this to suit your needs.

Changes to standard bake

  • Removed the _serialize from the controllers
  • Removed the actions sidebar from all templates
  • Formatted tables with Bootstrap
  • Added a 'New' button to the top of tables
  • Add basic filter form to index templates
  • Tidied up the pagination
  • Made the Actions column links into buttons
  • Added handling for date, datetime and time using the Time helper
  • Added handling for boolean data using Bootstrap icons
  • Updated the View template to use Bootstrap panels
  • Spaced out the Table definition functions
  • Added classes to the columns in index templates
  • Lists are now ordered
  • Index pagination is done with a query

License

See license.md

futurando-oficial/cakephp-admin 适用场景与选型建议

futurando-oficial/cakephp-admin 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 37 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 09 月 27 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「admin」 「theme」 「bootstrap」 「cakephp」 「bake」 「cakephp3」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 futurando-oficial/cakephp-admin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 futurando-oficial/cakephp-admin 我们能提供哪些服务?
定制开发 / 二次开发

基于 futurando-oficial/cakephp-admin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 37
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 7
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: CSS

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2018-09-27