Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Yii Booster Tbactiveform Issue

$
0
0
I'm new in Yii, I'm trying to load a partial view with the model param but when I load the form like this:

<?php /** @var BootActiveForm $form */
	$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
		'id'=>'horizontalForm',
		'type'=>'horizontal',
            'htmlOptions'=>array('class'=>'well'),
	)); ?>
 
    <fieldset>
 
        <legend>Seleccione los estados de las Salidas Digitales</legend>
        <?php echo $form->toggleButtonRow($model, 'di2'); ?>
    </fieldset>
 
    <div class="form-actions">
        <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'type'=>'primary', 'label'=>'Submit')); ?>
        <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'reset', 'label'=>'Reset')); ?>
    </div>
 
<?php $this->endWidget(); ?>


appears the next error:

include(di2.php): failed to open stream: No such file or directory


"di2" is an attribute of the model $model->di1 and $model->di2, when I tried a simple input field tag not the one from Yii Booster, it loads ok <_< , I don't know whats going on, please help, thanks in advance... :D

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>