jenzri-nizar/zf3-bootstrapdatepicker
Composer 安装命令:
composer require jenzri-nizar/zf3-bootstrapdatepicker
包简介
Zend Framework bootstrap datepicker
关键字:
README 文档
README
zf3-bootstrapdatepicker
zend framework 3 bootstrap datepicker
##Installation
- Ajouter l'exigence suivante à votre fichier composer.json. Dans la section:"require"
composer require jenzri-nizar/zf3-bootstrapdatepicker v1.0
- 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'));
统计信息
- 总下载量: 112
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-03