frequence-web/calendr-bundle
最新稳定版本:1.2.2
Composer 安装命令:
composer require frequence-web/calendr-bundle
包简介
This bundle provides an integration of the CalendR library
关键字:
README 文档
README
This bundle provides CalendR integration.
It allows you to manage calendar and events.
Calendar generation
Controller:
/** * @Template() */ public function indexAction() { return array('month' => $this->get('calendr')->getMonth(2012, 01)); }
Template
<table> {% for week in month %} <tr> {% for day in week %} <td> {% if month.contains(day) %} {{ day.begin.format('d') }} {% else %} {% endif %} </td> {% endfor %} </tr> {% endfor %} </table>
Event management
Providers
To manage your events, you have to create a provider and an event class. See CalendR doc
Declare your provider
This bundle allows you to easily add your providers to the CalendR event manager. Your provider have to be a service.
#config.yml services: my_event_provider: class: Your\Bundle\Event\Provider tags: - { name: calendr.event_provider }
统计信息
- 总下载量: 81.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 24
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-05-22