</article> </div><!--end .col --> <div class="col-lg-offset-1 col-md-8"> <div class="card"> <div class="card-body"> <?php echo $form->field($model, 'nombre')->textInput(); ?> <?php echo $form->field($model, 'descripcion')->textarea(['class' => 'form-control misummernote']); ?> <?php echo $form->field($model, 'icono')->textarea(['class' => 'form-control']); ?> <?php echo $form->field($model, 'padre')->dropDownList($categorias->listadoCategorias(), ['prompt' => '', 'class' => 'form-control select2-list']); ?> <?php /*echo TreeView::widget([ // single query fetch to render the tree // use the Product model you have in the previous step 'query' => PaginasCategorias::find()->addOrderBy('root, lft'), 'headingOptions' => ['label' => 'Categories'], 'fontAwesome' => false, // optional 'isAdmin' => false, // optional (toggle to enable admin mode) 'displayValue' => 1, // initial display value 'softDelete' => true, // defaults to true 'cacheSettings' => [ 'enableCache' => true // defaults to true ] ]);*/