Saving Data From Yii Widget

I am using a CJUIDatePicker widget in one of my Yii Forms generated through GII in order to simply the users data entry aspect. However it only enters 00:00:00 into the database.

In my view file,


&#036;this-&gt;widget('zii.widgets.jui.CJuiDatePicker', array(





In the controller actionCreate,

$model=new Patient_meals;







I also used an autocomplete widget in another form using CJUIAutoComplete, but when I submit the records it mentions that addressCity cannot be blank, despite it being filled





In the actionCreate method

$model=new Patient_details;







Any ideas on how this could be fixed

I think date format will create problem.datebase date format is "YY-mm-dd" . Just Try this code in date picker


                    'dateFormat' => 'yy-mm-dd',


Thanks, the date picker works correctly now. However did you have time to check on the CJUIAutoComplete widget

add model to CJuiAutocomplete