示例#1
0
 public static function dateRange($model, $attr, $value = array(), $htmlOptions = array())
 {
     $val0 = isset($value[0]) ? $value[0] : null;
     $val1 = isset($value[1]) ? $value[1] : null;
     return MyHtml::dateField($model, $attr . '[0]', $val0) . '<br/>Até<br/>' . MyHtml::dateField($model, $attr . '[1]', $val1);
 }