indigophp/sonata-admin-print-bundle
最新稳定版本:v0.1.0
Composer 安装命令:
composer require indigophp/sonata-admin-print-bundle
包简介
Allows to print entities
关键字:
README 文档
README
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.
- Use
Indigo\SonataAdminPrintBundle\Admin\PrintAdmintrait in your custom admin class. - Use
Indigo\SonataAdminPrintBundle\Controller\CRUDPrintControllertrait 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) - In the
configureListFieldsmethod configure an action calledprint. You need to set the template manually toSonataAdminPrintBundle::list__action_print.html.twiglike 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
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-13