PHP – Yii Framework date input by JuiDatePicker

Hi, this is a widget about picking date through form input field in the Yii Framework. this widget is known by JuiDatePicker this is very popular and famous date picker widget in Yii Framework. we just need to copy this code and paste in the ” _Form.php ” according to the view folder of the specific controller.

well if there is any problem you faces don’t hesitate to knock me . JUST ENJOY !!!

labelEx($model,'date'); ?>
widget('zii.widgets.jui.CJuiDatePicker',array(
'name'=>'PaymentList[date]',
'id'=>'PaymentList_date',
'value'=>Yii::app()->dateFormatter->format("y-M-d",strtotime($model->date)),
'options'=>array(
'showAnim'=>'fadeIn',
'dateFormat' => 'yy-mm-dd',
),
'htmlOptions'=>array(
'style'=>'height:20px;'
),
)); ?>

Details will be coming soon..

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s