zenstruck/dashboard-bundle

提供可配置的管理菜单和仪表板,具有可定制的部件。

资助包维护!
kbond

安装数: 5,250

依赖项: 1

建议者: 0

安全性: 0

星标: 3

关注者: 3

分支: 2

开放问题: 1

类型:symfony-bundle

v0.1.0 2013-12-11 15:23 UTC

This package is auto-updated.

Last update: 2024-09-08 01:34:28 UTC


README

提供可配置的管理菜单和仪表板,具有可定制的部件。

Screenshot

查看示例源代码

安装

  1. 添加到您的 composer.json

    {
        "require": {
            "zenstruck/dashboard-bundle": "*"
        }
    }
  2. 使用Symfony2注册该包

    // app/AppKernel.php
    
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Zenstruck\Bundle\DashboardBundle\ZenstruckDashboardBundle(),
        );
        // ...
    }

完整默认配置

zenstruck_dashboard:
    user_service:         false
    title:                Administration
    theme:                ZenstruckDashboardBundle:Bootstrap2
    theme_options:        []
    dashboard_template:   ~
    layout:               ~
    menu_service:         ~
    widgets:

        # Prototype
        name:
            title:                ~
            content:              ~ # Required

            # route, controller, template
            content_type:         controller

            # embed, hinclude, esi, ajax
            include_type:         embed
            group:                ~
            role:                 ~
            params:               []
    menu:

        # Prototype
        name:
            label:                ~
            group:                primary
            icon:                 ~
            nested:               true
            items:

                # Prototype
                name:
                    label:                ~
                    uri:                  ~
                    route:                ~
                    routeParameters:      ~
                    role:                 ~
                    icon:                 ~