I'm using YiiBooster and trying to make a textField within TbActiveForm inside the /views/layout/main.php
<?php $this->widget( 'booster.widgets.TbActiveForm', array( 'id' => 'inlineForm', 'type' => 'inline', 'htmlOptions' => array('class' => 'well'), ) ); echo $form->textFieldGroup($model, 'textField'); ?>
But I have small problem, when tried to run it comes the error message:
PHP notice Undefined variable: form
undefined variable.png (34.11K)
Number of downloads: 5
I've already tried to make the mainController using gii, but still prompting the same error message.
Can anybody help me to fix this? Thanks.