定制 kappa/calendar 二次开发

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

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

kappa/calendar

最新稳定版本:v1.0.0

Composer 安装命令:

composer require kappa/calendar

包简介

Component for generation calendar prepared for next work with it

README 文档

README

Component for generation calendar prepared for next work with it

Requirements:

Installation

The best way to install kappa/calendar is using Composer:

$ composer require kappa/calendar:@dev

And now you have to register the extensions in config.neon

extensions:
	- Kappa\Calendar\CalendarExtension

Usages

You can use default component with default or custom template

/**
 * @inject
 * @var \Kappa\Calendar\ICalendarControlFactory
 */
public $calendarControlFactory;

/**
 * @return \Kappa\Calendar\CalendarControl
 */
protected function createComponentCalendar()
{
	return $this->calendarControlFactory->create();
}

with custom template

/**
 * @return \Kappa\Calendar\CalendarControl
 */
protected function createComponentCalendar()
{
	$calendar = $this->calendarControlFactory->create();
	$calendar->setTemplate('template.latte');

	return $calendar;
}

or in template

{control calendar 'template.latte'}

In template will be $calendar variable contains Calendar object for more info please see into default template

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2013-01-09