Yii 1.1: jalali-bootstrap-datepicker

This extension is Jalali Bootstrap DatePicker
6 followers

Documentation

Requirements

  • Yii 1.0 or above

Installation

  • Extract the release file under protected/extensions

Usage

Jalali Bootstrap DatePicker

Example usage:
If model name is message and attribute name is messageDate, then you can used this widget:

$this->widget('ext.rezvan.RDatePicker',array(
    'name'=>'message[messageDate]',
    'value'=>$model->messageDate,
    'options' => array(
        'format' => 'yyyy/mm/dd',
        'viewformat' => 'yyyy/mm/dd',
        'placement' => 'right',
        'todayBtn'=>true,
    )
));

Donate

Want to say thanks for the time and efforts put on this project?
Donate

Sample Picture

Jalali Bootstrap-Datepicker

Total 3 comments

#17165 report it
mnk at 2014/05/08 11:29pm
thanks

You have created a very interesting extention thank you.

#15873 report it
Amini at 2013/12/25 05:46am
example with model attribute
<div class="span4">
    <?php echo $form->labelEx($model,'messageDate'); ?>
    <?php 
        $this->widget('ext.rezvan.RDatePicker',array(
            'name'=>'message[messageDate]',
            'value'=>$model->messageDate,
            'options' => array(
                'format' => 'yyyy/mm/dd',
                'viewformat' => 'yyyy/mm/dd',
                'placement' => 'right',
                'todayBtn'=>true,
            )
        ));  
    ?>
    <?php echo $form->error($model,'messageDate'); ?>
</div>
#15870 report it
msoa at 2013/12/25 01:47am
comintate with model attribute

Thanks for effort, Is possible bound the widget to a model attribute? if true, can u put an example with model attribute?

Leave a comment

Please to leave your comment.

Create extension