[SOLVED] time picker help


if there’s a datepicker in yii, is there also an equivalent built-in function for time ?

let’s say I wanna store something like 7:00am OR 7:00AM ?

sample codes can help alot, thanks in advance :)

It does not, but you should look for it in plugins.jquery.com, i used it once, but i can’t remember exactly the name of it, try search for datepicker ;)

problem solved, I used this


and coded like this



                            'model' => $model,

                            'attribute' =>  'PreferredDailyEndTime',

                            'options' => array(

                               'ampm' => true,

                               'timeOnly' => true,





perfect :)

but it doesn’t work

give this error Alias "application.extensions.timepicker.EJuiDateTimePicker" is invalid. Make sure it points to an existing PHP file. :frowning:

my mistake with this view it works fine



                    	'model' =&gt; &#036;model,

                    	'attribute' =&gt;  'PreferredDailyEndTime',

                    	'options' =&gt; array(

                        	'ampm' =&gt; true,

                        	'timeOnly' =&gt; true,





i was getting the error because I extract the files in the extension folder but i corrected my foolish mistake by extracting the entire timepicker folder in the extension folder