echo $form->dropDownList($model, 'intervalo_id', $intHelper); ?> <?php //echo $form->textField($model,'intervalo_id'); ?> <?php echo $form->error($model, 'intervalo_id'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'dia_id'); ?> <?php echo $form->dropDownList($model, 'dia_id', CHtml::listData(Dia::model()->findAll(), 'dia_id', 'dia_nombre')); ?> <?php //echo $form->textField($model,'dia_id'); ?> <?php echo $form->error($model, 'dia_id'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'sucursal_id'); ?> <?php echo $form->dropDownList($model, 'sucursal_id', CHtml::listData(Sucursal::model()->findAll(), 'sucursal_id', 'sucursal_nombre'));
/** * Returns the data model based on the primary key given in the GET variable. * If the data model is not found, an HTTP exception will be raised. * @param integer $id the ID of the model to be loaded * @return Dia the loaded model * @throws CHttpException */ public function loadModel($id) { $model = Dia::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }