1. Christian Salazar
  2. etimepicker

Commits

Christian Salazar  committed 2445784

readme update

  • Participants
  • Parent commits 4e54a9a
  • Branches master

Comments (0)

Files changed (1)

File README.md

View file
  • Ignore whitespace
 
 In your view:
 ~~~
-[php]
 	echo $form->hiddenField($model,'yourtimefield');
 	$this->widget('ext.etimepicker.ETimePicker',
 		array('altField'=>'YourModel_yourtimefield'));  // the input ID !
 
 Your sample model:
 ~~~
-[php]
 class YourModel extends CFormModel /*or CActiveRecord !*/ {
   public $yourtimefield;  // a time field: "hh:mm" formatted (24 hours)
   ...