jenzri-nizar/zf3-bootstrapdatepicker

Zend Framework bootstrap datepicker

v1.0 2016-10-03 20:34 UTC

This package is not auto-updated.

Last update: 2024-04-27 17:37:14 UTC


README

zf3-bootstrapdatepicker

zend framework 3 bootstrap datepicker

##Installation

  1. Ajouter l'exigence suivante à votre fichier composer.json. Dans la section:"require"
composer require jenzri-nizar/zf3-bootstrapdatepicker v1.0
  1. Ouvrez votre ligne de commande et exécutez
composer update

Le module doit être enregistré dans config/modules.config.php

'modules' => array(
    '...',
    'Zend\Form',
    'Zf3\Bootstrapdatepicker'
),

##Exemple

$this->add(array(
            'name' => 'id',
            'type' => 'Zf3\Bootstrapdatepicker\Form\Element\Datepicker',
            'attributes'=>array(
                'class'=>'form-control',
            ),
            'options'=>array(
                'settings'=>array(
                    'id'=>"data",
                    'datepicker'=>array(
                        "format"=>"mm/dd/yyyy",
                        "startDate"=>"-3d",
                        "language"=> 'fr'
                    ),
                    "icon"=>"true",
                    "icon-class"=>"glyphicon glyphicon-th"
                )
            )

        ));

form.phtml

echo $this->datepicker($form->get('id'));

alt tag