Posts Tagged with datepicker

Displaying 1-2 of 2 results.
Resolved: Yii cjuidatepicker not saving
posted by admin on January 30, 2016
I have this field in my _form.php

<?php
$this->widget('zii.widgets.jui.CJuiDatePicker',
array(
'model' => $model,
'attribute' => 'founding',
'language' => Yii::app()->language,
'flat' => false, // tells the widget to show the calendar inline
'options' => array(
'showOn' => 'both', // also opens with a button
'dateFormat' => 'yy-mm-dd', // format of "2012-12-25"
'showOtherMonths' => true, // show dates in other months
'selectOtherMonths' => true, // can seelect dates in other months
'changeYear' => true, // can change year
'changeMonth' => true, // can change month
'yearRange' => '2000:2099', // range of year
'minDate' => '2000-01-01', // minimum date
'maxDate' => '2099-12-31', // maximum date
'showButtonPanel' => true, // show button panel
),
'htmlOptions' => array(
'size' => '10',
'maxlength' => '10',
),
)
);
?>


Controller SAVE() saving NULL. I var_dump($model) and see NULL.
Please help me to correct.Read more
Resolved: Yii jQuery UI date calendar on form
posted by admin on January 22, 2016
I have text field on form

<div class="row">
<?php echo $form->labelEx($model,'date_from'); ?>
<?php
echo $form->textField($model, 'date_from', array(
'size' => 10,
'maxlength' => 10,
));
?>
<?php echo $form->error($model,'date_from'); ?>
</div>


I want to change textfield to jQuery UI date.Read more