Latest news:
Sahih al-Bukhari (সহীহ বুখারী) is a free Hadith application for android. This application is advertisement free. Download now https://play.google.com/store/apps/details?id=com.akramhossin.bukharisharif
In this blog post we will learn how to add jQuery UI date picker to Yii application.
To display jQuery UI date picker in the view page we need to call Yii built-in function widget.
This widget function accepts following parameters
Widget options also accepts multiple parameters it depends on widget class like
In yii to display jQuery UI date picker we have to use zii.widgets.jui.CJuiDatePicker widget class, some of the options are
We can use the below code for jQuery ui date picker in the view page
$this->widget('zii.widgets.jui.CJuiDatePicker', array(
'model' => $model,
'attribute' => 'PRD_START_DT',
'options' => array(
'dateFormat' => 'd-M-y',
'showAnim' => 'slide',
'changeMonth' => true,
'changeYear' => true,
'minDate' => date('d-M-y'),
),
'htmlOptions' => array(
'class' => 'form-control',
),
));
Views : 950