brown298/reportbuilderbundle

报告构建器

安装数: 1,885

依赖项: 0

建议者: 0

安全性: 0

类型:symfony-bundle

v0.2.1 2015-11-01 11:08 UTC

This package is not auto-updated.

Last update: 2024-09-28 10:31:05 UTC


README

Build Status

此包为您的Symfony2/Doctrine项目添加了一个动态报告引擎

安装

将包 brown298/reportbuilderbundle 添加到 composer.json 中

{
    "require" : {
        "brown298/reportbuilderbundle": "dev-master"
    }
}

有关 Composer 的更多信息,请访问 https://getcomposer.org.cn

将控制器添加到路由器

#app/config/routing.yml
brown298_report_builder:
    resource: "@Brown298ReportBuilderBundle/Resources/config/routing.yml"
    prefix:   /

创建 doctrine 表

app/console doctrine:schema:update --force

配置

将 Brown298ReportBuilderBundle 添加到应用程序内核

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Brown298\ReportBuilderBundle\Brown298ReportBuilderBundle(),
        // ...
    );
}

更新 Assetic 配置

将报告构建器包添加到 assetic 包

# Assetic Configuration
        assetic:
        bundles:        [ "Brown298ReportBuilderBundle" ]

配置选项

# config.yml
brown298_report_builder:
    builder:
        system_reports: true      # enable/disable system reports - default: true
        shared_reports: true      # enable/disable report sharing - default: true
        metadata_type: annotation # annotation/yml; where the report options are stored - default: annotation
        security_type: null       # null/role/custom; determines the security structure - default: null
        base_entities:            # starting point for the report
            - 'Full Entity Name'