<?php $this->widget('ext.wdueditor.WDueditor', array('model' => $model, 'attribute' => 'materi_topik', 'language' => 'en')); ?> <BR> <?php echo $form->error($model, 'materi_topik'); ?> </div> <!-- <div class="row"> <?php echo $form->labelEx($model, 'id_modul'); ?> <?php echo $form->dropDownList($model, 'id_modul', CHtml::listData(Modul::model()->findAll(), 'id_modul', 'nama_modul')); ?> <?php echo $form->error($model, 'id_modul'); ?> </div> --> <div class="row buttons"> <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?> </div> <?php $this->endWidget();
/** * 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 Modul the loaded model * @throws CHttpException */ public function loadModel($id) { $model = Modul::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }