ドロップダウンを作成しようとしていますが、今のところ表示したくないので、ここにコードを示します。
<div class="row">
<?php echo $form->labelEx($model,'lang_id'); ?>
<?php echo $form->dropdownlist($model,'lang_id',CHtml::listData(Lang::model()->findAll(), 'id', 'name')); ?>
<?php echo $form->error($model,'lang_id'); ?>
</div>
どうすればこれtype = 'hidden'
またはそのようなものを作ることができますか?
つまり、フィールドを保持したいのですが、表示したくないのです。