Yii Framework Forum: Datepicker From Giix - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Datepicker From Giix Rate Topic: -----

#1 User is offline   Kratos2011 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 20-April 11

Posted 26 August 2013 - 12:07 AM

When using GiiX CRUD, I see that it has generated code for the data fields in my my model. But, when I test the field, the date picker doesn't appear. I am using a custom theme, is there a different option for making the date picker appear?
0

#2 User is offline   kalpit 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 150
  • Joined: 02-August 13
  • Location:Bangalore

Posted 26 August 2013 - 01:14 AM

i didn't get your question properly but i think you might want to use date picker...

if you are looking for date picker field then try following code

<div class="row">
		<?php echo $form->labelEx($model,'attribute_name'); ?>
		<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
			    'model' => $model,
			    'attribute' => 'attribute_name',
			    'htmlOptions' => array(
		        'size' => '10',         // textField size
		        'maxlength' => '10',    // textField maxlength
    			),
			)); ?>
		<?php echo $form->error($model,'atribute_name'); ?>
	</div> 

Thanks,
Kalpit Pandit
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users