Yii 1.1 Time Dropdown List

I have searched other dependent drop down list problems and I tried them but just don’t work for me. In my case, the first drop down is a list of start times (i.e 7:00, 8:00 and so on until 10:00) and the second one is a list of end times (16:00 to 19:00). If I choose a Start Time of 7:00, 9 hours will automatically be added to it and the result will be displayed on the End Time drop down, so that’ll be 16:00.

Here is my VIEW

This is my Start Time drop down:


<label class="col-lg-2 form-label"><b>Start Time</b></label>

    <div class="col-lg-4" >

        <?php 

            echo $form->dropDownList($details, 'time_from', FWA::getTimeFrom(), array('class' => 'form-control')) 

        ?>

    </div>

This is my End Time drop down:


<label class="col-lg-2 form-label"><b>End Time</b></label>

    <div class="col-lg-4" >                            

        <?php 

            echo $form->dropDownList($details, 'time_to', FWA::getTimeTo(), array('class' => 'form-control', 'id' => 'EndTimeID')) 

        ?>         

    </div>

My CONTROLLER is kind of complicated and is also confidential. All I could say is that I don’t have a separate controller for both Start and End Time. Its codes are just placed inside the public function actionCreate() in my FWController.php

I hope somebody can help me through this.