定制 kadekjayak/semantic-ui 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

kadekjayak/semantic-ui

Composer 安装命令:

composer require kadekjayak/semantic-ui

包简介

SemanticUI plugin for CakePHP

README 文档

README

This is Semantic UI plugin for CakePhp, it contain Theme for Bake, modified component and Helper.

Installation

Install using composer

composer require kadekjayak/semantic-ui

or Download and extract it into plugin directory on cakephp.

after that you need to load the plugin manually by adding it into Bootstrap.php

Plugin::load('SemanticUI', ['bootstrap' => false, 'routes' => true]);

##Requirements

  • CakePHP 3+

Example

Using Theme for Bake

you can bake with Semantic UI theme by using --theme options, you can use the command below on terminal

/bin/cake bake template all --theme SemanticUI

and use the layout that included from plugin, for example change on your src/Controller/AppController.php. (actualy i didn't know if it's the correct way)

public function beforeRender(Event $event)
{
    $this->viewBuilder()->layout('SemanticUI.semantic');
    if (!array_key_exists('_serialize', $this->viewVars) &&
        in_array($this->response->type(), ['application/json', 'application/xml'])
    ) {
        $this->set('_serialize', true);
    }
}

to get the Input form Styled you should use Form Helper on this plugin, you can use Form helper on this plugin by passing className options when loading FormHelper on your src/View/AppView.php

public function initialize()
{
    $this->loadHelper('Form', ['className' => 'SemanticUI.SemanticForm']);
    $this->loadHelper('Paginator', ['className' => 'SemanticUI.SemanticPaginator']);
    $this->loadHelper('Html', ['className' => 'SemanticUI.SemanticHtml']);
}

##Notes For more info about Semantic UI visit their official website on : http://semantic-ui.com/

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-08-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固