0

Is it possible use Yii booster form component without model?

<?php echo $form->textFieldRow($model, 'textField',
        array('hint'=>'In addition to freeform text, any HTML5 text-based input appears like so.')); ?>
Wildan Muhlis
  • 1,553
  • 2
  • 22
  • 43

1 Answers1

1

You can use use TbForm instead of TbActiveForm in the widget if you want to create a form without ActiveRecord. TbActiveForm expects an ActiveRecord model whereas TbForm doesn't.

If you just want to use an individual element, you can always fall back to CHtml::textField().