yangshihe/yii2-zui

The ZUI extension for the Yii framework

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 1

Language:CSS

Type:yii2-extension

2.0.8 2017-06-26 02:40 UTC

This package is not auto-updated.

Last update: 2024-04-13 16:57:00 UTC


README

版本2还尚未发布 一个基于Yii2 + Bootstrap => ZUI 定制开源前端实践.

第二次规划, 放弃第一版的更新;

ZUI项目网站: http://zui.sexy/

描述

  • 轻量级整合;
  • 易于定制,有多个版本供选择,主要版本包含大部分特性,额外的内容按需加载。
  • 一般还是不要安装这个, 这是一个 个人使用的扩展,其他人若要使用需要重新生产。

安装

Either run

$ composer require yangshihe/yii2-zui

or add

"yangshihe/yii2-zui": "^1.5"

to the require section of your composer.json file.

配置相关

app/AppAsset.php;

class AppAsset extends AssetBundle {

    public $depends = [
		'yangshihe\zui\ZuiAsset',
	];
}

控制器 取消原生态的 BootstrapAsset

    public function init()
    {

        parent::init();

        Yii::$app->assetManager->bundles = [
            'yii\bootstrap\BootstrapAsset' => [
                'css' => [],
            ],
            'yii\bootstrap\BootstrapPluginAsset' => [
                'js' => [],
            ],
            'yii\bootstrap\BootstrapThemeAsset' => [
                'css' => [],
            ]
        ];

    }

Demo

暂无

其他

等待下一次更新,更多的在挂件目录,头部一般含有使用方式