This widget display a simple time picker using this jQuery plugin:
http://www.jnathanson.com/index.cfm?page=jquery/clockpick/ClockPick
Usage ¶
In your _form.php, replace the text field with this:
<?php $this->widget('ext.widgets.clockpick.EClockpick', array(
	     'model'			=> $model,
	     'attribute'		=>'end',
	     'options'			=>array(
			 'starthour' 	=> 8,
			 'endhour' 		=> 20,
			 'showminutes' 	=> TRUE,
			'minutedivisions'	=> 12,
			'military'		=> TRUE,
	     ),
	     'htmlOptions'		=> array('size'=>5,'maxlength'=>5)
	)); ?>
Thanks
Thanks for the extension.
In Yii version 1.17 the extension doesn't work until modified.
// put this code before class EClockpick extends CJuiInputWidget Yii::import('zii.widgets.jui.CJuiInputWidget');doodle
Thanks
Thanks u so much,.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.