This would be a general question, to specifics (about Yii),
I just want to know if this is a good practice, or simply if its correct:
On my _form view, I am calling a another model not from the current model in used;
// @model Clients
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'myid-form',
'enableAjaxValidation'=>false,
)); ?>
<div class="row">
<?php echo $form->labelEx($model,'Debtor'); ?>
<?php echo $form->dropDownList($model, 'Debtor'
, CHtml::listData(Debtor::model()->findAll(), 'DebtorCode', 'DebtorDesc'),array('empty'=>'(Select Debtor)')); ?>
<?php echo $form->error($model,'Debtor'); ?>
</div>
If I am wrong, can someone tell me what is the correct way before it becomes a habit..
TIA