Hi all,
I have a controller and a set of views for that controller,i want to use bootstrap for this views.
Problem is the model for this is not there.So how can i handle this.
Example Code,
<?php /** @var BootActiveForm $form */
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm');
?>
<?php echo $form->textFieldRow($model, 'textField', array('class'=>'input-small')); ?>
<?php echo $form->passwordFieldRow($model, 'password', array('class'=>'input-small')); ?>
<?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'label'=>'Log in')); ?>
<?php $this->endWidget(); ?>
Here what will be the $model in this case?
I have a controller and a set of views for that controller,i want to use bootstrap for this views.
Problem is the model for this is not there.So how can i handle this.
Example Code,
<?php /** @var BootActiveForm $form */
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm');
?>
<?php echo $form->textFieldRow($model, 'textField', array('class'=>'input-small')); ?>
<?php echo $form->passwordFieldRow($model, 'password', array('class'=>'input-small')); ?>
<?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'label'=>'Log in')); ?>
<?php $this->endWidget(); ?>
Here what will be the $model in this case?