kmelia/zebra-datepicker-bundle


Keywords
bundle, datepicker, Zebra_Datepicker
License
GPL-3.0+

Documentation

Zebra Datepicker Bundle

Provides the Zebra Datepicker jQuery plugin with a Symfony Bundle.

Getting started

1. Require the Zebra Datepicker Bundle with Composer: bash composer require kmelia/zebra-datepicker-bundle "0.*" Composer will install the bundle to your project's vendor/kmelia/zebra-datepicker-bundle directory.

2. Enable the bundle in the Symfony kernel app/AppKernel.php: ```php <?php

public function registerBundles() { // vendor $bundles[] = new Kmelia\ZebraDatepickerBundle\KmeliaZebraDatepickerBundle(); } ```

3. Use the custom Twig Extension: ```twig {# load the javascript #} {{ zebradatepickerload_js() }}

{# load the stylesheet #} {{ zebradatepickerload_css() }}

{# create a ZebraDatepicker input[name="element"] #} {{ zebradatepicker_input('element') }} ```