定制 indigophp/sonata-admin-print-bundle 二次开发

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

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

indigophp/sonata-admin-print-bundle

最新稳定版本:v0.1.0

Composer 安装命令:

composer require indigophp/sonata-admin-print-bundle

包简介

Allows to print entities

关键字:

README 文档

README

Latest Version Software License Total Downloads

Allows to print entities.

Install

Via Composer

$ composer require indigophp/sonata-admin-print-bundle

Usage

First of all you need to be familiar with the process of creating a custom action. See instructions here.

  1. Use Indigo\SonataAdminPrintBundle\Admin\PrintAdmin trait in your custom admin class.
  2. Use Indigo\SonataAdminPrintBundle\Controller\CRUDPrintController trait in your custom admin controller. Make sure you pass in the controller name as an argument in the service definition. (Check the above link to learn how to do that)
  3. In the configureListFields method configure an action called print. You need to set the template manually to SonataAdminPrintBundle::list__action_print.html.twig like this:
    ->add('_action', 'actions', array(
        'actions' => array(
            'show' => array(),
            'edit' => array(),
            'delete' => array(),
            'print' => array(
                'template' => 'SonataAdminPrintBundle::list__action_print.html.twig',
            ),
        )
    ))

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please contact us at security@indigophp.com.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-13