<?php $form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'portfolio-form', 'htmlOptions' => array('enctype' => 'multipart/form-data'), 'enableAjaxValidation' => false)); ?> <div class="box-body"> <p class="help-block">Fields with <span class="required">*</span> are required.</p> <?php echo $form->errorSummary($model); ?> <?php echo $form->textFieldControlGroup($model, 'title', array('maxlength' => 255)); ?> <?php echo BsHtml::exLabel('Description'); ?> <?php $this->widget('ext.editMe.widgets.ExtEditMe', array('model' => $model, 'attribute' => 'description', 'id' => 'editor', 'toolbar' => Yii::app()->params['toolbar_editor'], 'filebrowserBrowseUrl' => Yii::app()->baseUrl . '/kcfinder/browse.php?type=files', 'filebrowserImageBrowseUrl' => Yii::app()->baseUrl . '/kcfinder/browse.php?type=images', 'filebrowserFlashBrowseUrl' => Yii::app()->baseUrl . '/kcfinder/browse.php?type=flash', 'filebrowserUploadUrl' => Yii::app()->baseUrl . '/kcfinder/upload.php?type=files', 'filebrowserImageUploadUrl' => Yii::app()->baseUrl . '/kcfinder/upload.php?type=images', 'filebrowserFlashUploadUrl' => Yii::app()->baseUrl . '/kcfinder/upload.php?type=flash')); ?> <?php echo $form->textFieldControlGroup($model, 'url', array('maxlength' => 100)); ?> <!-- <?php echo $form->textAreaControlGroup($model, 'photo1', array('rows' => 6)); ?> <?php echo $form->textAreaControlGroup($model, 'photo2', array('rows' => 6)); ?> <?php