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
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?
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>
thanks
You have created a very interesting extention
thank you.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.