kmelia/zebra-datepicker-bundle

0.2.0 2015-11-24 16:25 UTC

README

Provides the Zebra Datepicker jQuery plugin with a Symfony Bundle.

Getting started

1. Require the Zebra Datepicker Bundle with Composer:

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

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

3. Use the custom Twig Extension:

{# load the javascript #}
{{ zebra_datepicker_load_js() }}

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

{# create a Zebra_Datepicker input[name="element"] #}
{{ zebra_datepicker_input('element') }}