Tbdaterangepicker Full Example

Is there anywhere I can find a full example code that demonstrates how to use

the TbDateRangePicker. (ie: controller, model, and view file)?

Can the TbDateRangePicker be used by itself, without being part of a form?

Thank you

Any help would be greatly appreciated

Thank you

Still need help with this!!!

Any help would be greatly appreciated

Thank you

You can use it in the forms:


<?php echo $form->dateRangeRow($model, 'dateRangeField',

        array('hint'=>'Click inside! An even a date range field!.',

        'prepend'=>'<i class="icon-calendar">>/i>',

        'options' => array('callback'=>'js:function(start, end){console.log(start.toString("MMMM d, yyyy") + " - " + end.toString("MMMM d, yyyy"));}')

        )); ?>

and filter for gridView:




'filters'=>this->widget('bootstrap.widgets.TbDateRangePicker',array()),

and itself - http://www.dangrossman.info/2012/08/20/a-date-range-picker-for-twitter-bootstrap/