r/uikit-bundle 问题修复 & 功能扩展

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

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

r/uikit-bundle

Composer 安装命令:

composer require r/uikit-bundle

包简介

Use UiKit in Symfony

README 文档

README

Use UiKit-Forms in Symfony2

Installation

First you need to add r/uikit-bundle to composer.json:

{
    "require": {
        "r/uikit-bundle": "dev-master"
    }
}

You also need to add RUiKitBundle to your AppKernel.php

// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
    // ...
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new R\UiKitBundle\RUiKitBundle(),
        );
        // ...
        return $bundles
    }
    // ...
}

After that you have to let twig know about the form template

# ...
twig:
    # ...
    form:
        resources:
            - 'RUiKitBundle::uikit-form.html.twig'
# ...

You have to include the UiKit Stylesheets and JavaScripts for yourself. Essentially you also just could download the uikit-form.html.twig and use it witout installing this bundle, note that you have to chnage the date and time widgets to not use the localizeddateformat function and supply you own format for the uikit-date- and -timepicker.

The UiKit Components you need to include at least are these

  • form-select
  • form-password
  • form-file
  • form-advanced
  • placeholder
  • autocomplete
  • datepicker
  • timepicker

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-02